Validation using a random number problem
Posted: Wed Nov 29, 2006 10:05 am
Hi.
I am building a simple payment script.
The user goes to a form (say form.php) he enters the data in the form, and then submits it.
He is then sent to: payment.php, which has a paypal payment button. (the return URL is set to domain.com/form.php?randnumber=99 (where 99 is a random number generated in form.php)
after completing payment, the visitor is sent to: domain.com/form.php?randnumber=99 (where 99 is a random number generated in form.php)
The only problem si that when he returns, the rand number gets re randomized. Any way around this?
I am building a simple payment script.
The user goes to a form (say form.php) he enters the data in the form, and then submits it.
He is then sent to: payment.php, which has a paypal payment button. (the return URL is set to domain.com/form.php?randnumber=99 (where 99 is a random number generated in form.php)
after completing payment, the visitor is sent to: domain.com/form.php?randnumber=99 (where 99 is a random number generated in form.php)
The only problem si that when he returns, the rand number gets re randomized. Any way around this?