Jump to content

Log in and go to invoice


Recommended Posts

Can anyone tell my why this isn't working? I'm trying to set up this form so that the email address and password are filled in automatically (which works fine) and when the submit button is pushed the client is logged in and can view their invoice. I don't think I have the action set right. Right now it just redirects to another login screen where you have to manually fill in the email address and password and then it goes to the invoice.



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


<div style="display:none;">

<span class="footerinput">Email:</span><br /> <input type="text" name="user" class="cpanel" value="'.$_POST['emailaddress'].'"><br />

<span class="footerinput">Password:</span><br /> <input type="text" name="pass" class="cpanel" value="'.$_POST['password2'].'"><br />



<input type="submit" value="Complete Order" name="submit" class="footersubmit">




Appreciate any tips!

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.

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