Tricky Posted May 28, 2006 Share Posted May 28, 2006 Hi, when I try to integrate the login script that you have posted in the knowledgebase, it doesn't work. This is what my script looks like: <form method="post" action="http://pixelservers.com/billing/dologin.php" name="http://pixelservers.com/billing/frmlogin"> <font size="1">Email:</font> <input type="text" name="email" size="40"> <font size="1">Password:</font> <input type="password" name="password" size="20"> <input type="submit" value="Login"> </form> So I enter the login information on a test account I made, and after I click Login, it redirects to the dologin.php page, but it says it's 404 File not found. I am sure I entered the right address and I am sure that the file exists. Any help? Many thanks in advance! -Kyle 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted May 28, 2006 Share Posted May 28, 2006 Hey, Make sure you have your config settings correct, but I think it's the source code as when you vist the page dologin.php it goes to /billing/.php?action=&func=incorrect&step=login and it's missing the file name... From, Adam 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted May 28, 2006 WHMCS CEO Share Posted May 28, 2006 Hi Kyle, Add <input type="hidden" name="goto" value="clientarea"> and that should fix your problem. Regards, Matt 0 Quote Link to comment Share on other sites More sharing options...
Tricky Posted May 28, 2006 Author Share Posted May 28, 2006 Nope, now it goes to http://pixelservers.com/billing/.php?action=&func=incorrect&step=login My code now looks like this: <form method="post" action="http://pixelservers.com/billing/dologin.php" name="http://pixelservers.com/billing/frmlogin"> <font size="1">Email:</font> <input type="text" name="email" size="40"> <font size="1">Password:</font> <input type="password" name="password" size="20"> <input type="hidden" name="goto" value="clientarea"> <input type="submit" value="Login"> </form> Any other ideas? Thanks guys 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted May 28, 2006 WHMCS CEO Share Posted May 28, 2006 Ok, remove the <input type="hidden" name="goto" value="clientarea"> and just add ?goto=clientarea onto the end of <form method="post" action="http://pixelservers.com/billing/dologin.php It needs to be like this because the login script is expecting the goto as a GET variable rather than POST. Regards, Matt 0 Quote Link to comment Share on other sites More sharing options...
Tricky Posted May 28, 2006 Author Share Posted May 28, 2006 Okay, cool, that worked, it's heading towards the correct pag now. However, it says the username/passoword is incorrect, and I KNOW i'm typing in the correct thing 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted May 28, 2006 WHMCS CEO Share Posted May 28, 2006 Change name="email" to name="username" - we'll get there soon...! 0 Quote Link to comment Share on other sites More sharing options...
Tricky Posted May 28, 2006 Author Share Posted May 28, 2006 haha that worked! thanks a lot man The final code looks like this: <form action="http://pixelservers.com/billing/dologin.php?goto=clientarea" method="POST"> Email Address <input type="text" name="username" size="50"> Password <input type="password" name="password" size="30"> <DIV ALIGN="center"><input type="submit" value="Login"></DIV> </form> You should update that section in the knowledgebase you have here with the above, and it might confuse less people Thanks a lot man, I really appreciate the help. You do an EXCELLENT job standing behind your product 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted May 28, 2006 WHMCS CEO Share Posted May 28, 2006 Knowledgebase already updated Thanks for your comments. 0 Quote Link to comment Share on other sites More sharing options...
Tricky Posted May 28, 2006 Author Share Posted May 28, 2006 Sweet man, thanks again 0 Quote Link to comment Share on other sites More sharing options...
Devon Posted July 7, 2006 Share Posted July 7, 2006 Hi, when I try to integrate the login script that you have posted in the knowledgebase, it doesn't work. This is what my script looks like: <form method="post" action="http://pixelservers.com/billing/dologin.php" name="http://pixelservers.com/billing/frmlogin"> <font size="1">Email:</font> <input type="text" name="email" size="40"> <font size="1">Password:</font> <input type="password" name="password" size="20"> <input type="submit" value="Login"> </form> So I enter the login information on a test account I made, and after I click Login, it redirects to the dologin.php page, but it says it's 404 File not found. I am sure I entered the right address and I am sure that the file exists. Any help? Many thanks in advance! -Kyle Try this code: <form method="post" action="http://pixelservers.com/billing/dologin.php?goto=clientarea"> <font size="1">Email:</font> <input type="text" name="username" size="40"> <font size="1">Password:</font> <input type="password" name="password" size="20"> <input type="submit" value="Login"> </form> This is the code I'm using. <div style="width: 400;"> <fieldset><legend>Authentication Required</legend> <form action="clients/dologin.php?goto=clientarea" method="post"> <label>Email Address <input name="username" size="20" type="text"> </label> <label>Password <input name="password" size="20" type="password"> </label> <input value="Login" type="submit"> </form> </fieldset> </div> 0 Quote Link to comment Share on other sites More sharing options...
skshost Posted April 1, 2007 Share Posted April 1, 2007 My goal is to direct customers to the same page they were on when they submitted the login form, but dologin.php puts ".php" on the end of the goto value... BTW, I did the loggout (back to home page) thing too. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.