phpretard Posted December 18, 2007 Share Posted December 18, 2007 I am puting together some registration pages for my sons baseball park. The park requires you pay through paypal before you can fill out the registration form. No problem I just grab the "tx" that palpal sends back on the return to the site. If you have that on entering the page then your good else your not good. After submission...the thank you page. Here in lies the problem. PROBLEM = Press the back button on the thank you page and you can fill in and submit the form again. Thank you all for your thought. -Anthony Link to comment https://forums.phpfreaks.com/topic/82123-baseball-registration/ Share on other sites More sharing options...
PC Nerd Posted December 18, 2007 Share Posted December 18, 2007 hmm might work: set a cookie when you first submit the page. as a boolean value or something.. then simply check if the page has been submitted recently - maybe log hte timein the cookie? gdlk Link to comment https://forums.phpfreaks.com/topic/82123-baseball-registration/#findComment-417397 Share on other sites More sharing options...
play_ Posted December 18, 2007 Share Posted December 18, 2007 Once the form is submitted, create a session... say, $_SESSION['has_payed'] = 1; Now, whent he user presses the back button and fills out the form, have it so if $_SESSION['has_payed'] == 1; give him a message, rediect him, whatever floats your boat. Link to comment https://forums.phpfreaks.com/topic/82123-baseball-registration/#findComment-417401 Share on other sites More sharing options...
phpretard Posted December 18, 2007 Author Share Posted December 18, 2007 I thought of that but what if they have to register 2 kids? Link to comment https://forums.phpfreaks.com/topic/82123-baseball-registration/#findComment-417685 Share on other sites More sharing options...
bobahad Posted December 18, 2007 Share Posted December 18, 2007 No PHP code from me, I know as much as you do but just a suggestion. Why not have a dropdown to select how many kids they want to register originally. Link to comment https://forums.phpfreaks.com/topic/82123-baseball-registration/#findComment-417700 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.