We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10896
    • 76 Posts
    Hey all,

    I’ve been looking around the forums but can’t find an answer to this.

    How do I get webloginpe to work with friendly urls turned off?

    Because in this case a submitted form will go to something like index.php?id=33 and the weblogin form elements aren’t apparently tacking on properly because it’s not logging me in. I’m assuming it doing something like index.php?id=33?service=login

    Any thoughts?

    Thanks
      • 4041
      • 788 Posts
      Have a look here, I think this will solve your problem:
      http://modxcms.com/forums/index.php/topic,28470.msg172958.html#msg172958
        xforum
        http://frsbuilders.net (under construction) forum for evolution
        • 10896
        • 76 Posts
        Breezer,

        Thanks for the pointer. That code makes sense for links in ’a’ tags. However, what do i do for submission forms?

        [+wlpe.message+]
        <div id="wlpeLogin">
            <form id="wlpeLoginForm" action="[~[*id*]~]" method="POST">
                
        <table>
            <tr>
                <th>Username</th>
                <td><input id="wlpeUsername" type="text" name="username" /></td>
            </tr>
            <tr>
                <th>Password</th>
                <td>
                    <input id="wlpePassword" type="password" name="password" /> <a href="[~[*id*]~][+link_Sep+]service=forgot">Forgot password</a>
                </td>
            </tr>
            <tr>
                <th> </th>
                <td><input type="hidden" id="wlpeStayLoggedIn" value="86400" name="stayloggedin" />
        <button type="submit" id="wlpeLoginButton" name="service" value="login">Login</button></td>
            </tr>
        </table>
                
            </form>
            
        </div>
        


        Do I just add a hidden field with the service = login?