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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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. 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.