Return user input from PayPal

I created a basic purchase script where the user enters the desired username and password, then they can acquire membership on my site. But, when it goes to the return page, the Username and Password values ​​are not displayed 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>
+5
source share
2 answers

set a variable cookiefor each variable inputand transfer the data accordingly., and when returning from PayPal, you can simply check the variable cookieand transfer the data individually individually inputaccordingly.

+1
source

Paypal 'custom'

.

. , |

<input type="hidden" id="custom" name="custom" value="username|password"/>

, ​​

list($username,$password) = explode('|',$_POST['custom']);
0

All Articles