Jessn Posted February 23, 2009 Share Posted February 23, 2009 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 /> </div> <input type="submit" value="Complete Order" name="submit" class="footersubmit"> </form>'; Appreciate any tips! 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.