Jump to content

login form doesn't log in first time


Jessn

Recommended Posts

This is driving me completely insane. I have a login form that, when submitted, is supposed to redirect the client to their invoice. This is done when signing up for a new service. However when I create a test client and submit that form, it redirects me to the login page and asks me to do it again. Then I go into WHMCS and delete that test client and re-signup the same fake client again and the second time I submit the form it works.

 

Never works the first time. Always works the second time. And I can't figure out why!

 

Anyone?

 

<form method="post" action="http://www.site.com/WHMCS/whmcs/dologin.php?goto=viewinvoice.php?id='.$results['invoiceid'].'"> 

Email Address: <input type="text" name="username" value="'.$_POST['emailaddress'].'">

Password:  <input type="password" name="password" size="20"  value="'.$_POST['password2'].'">

<input type="submit"  value="Complete Order"> 
</form>

Link to comment
Share on other sites

Thanks for the reply Matt! I'm not sure if I'm using an SSL cert or not...do I just need to change the http:// to https:// ? When I tried that i got this error:

 

An error occurred during a connection to http://www.website.com:443.

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)

Link to comment
Share on other sites

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