PDA

View Full Version : Customer Login Integration Problem



Tricky
05-28-06, 12:28 AM
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

Adam
05-28-06, 03:54 AM
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

Matt
05-28-06, 07:16 AM
Hi Kyle,

Add <input type="hidden" name="goto" value="clientarea"> and that should fix your problem.

Regards,

Matt

Tricky
05-28-06, 01:14 PM
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

Matt
05-28-06, 01:18 PM
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

Tricky
05-28-06, 01:22 PM
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

Matt
05-28-06, 01:27 PM
Change name="email" to name="username" - we'll get there soon...! :)

Tricky
05-28-06, 01:29 PM
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 :)

Matt
05-28-06, 01:37 PM
Knowledgebase already updated :) Thanks for your comments.

Tricky
05-28-06, 01:52 PM
Sweet man, thanks again :D

Devon
07-07-06, 10:04 PM
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>

skshost
04-01-07, 10:21 AM
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.