I created a basic purchase script where a user enters their desired username and password, then they can purchase the membership on my website. But, when it goes to the return page, the values Username and Password don't show in the url. Here is the code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="CKQH4CYEMYLWW">
<center>
<span id="msgbox" style="display:none;"></span>
<br><br>
<input type="text" id="rusername" name="rusername" placeholder="Desired Username" class="usernamelogin">
<br><br>
<input type="password" id="rpassword" name="rpassword" placeholder="Desired Password" class="passwordlogin">
<br><br>
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
set cookie
variable for each input
variable and pass the data accordingly . . and on return from paypal you can simply check the cookie
variable and pass the data in the individual input
accordingly ..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With