Jump to content

Customer Login Integration Problem


Tricky

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • WHMCS CEO

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

  • 1 month later...
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>

Link to comment
Share on other sites

  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated