mgmoses Posted June 24, 2010 Share Posted June 24, 2010 Hello all - I'm at the conclusion of my script and I have what I believe to be my last question. My html form posts to my php script, which directs the client to a "thank you" page. At that point I would like to make the html form page no longer available from their "back" button. The reason is I do not want them to be able to go back and submit the same form again. Does anyone know what code I could use to do this? Thanks for the help! Quote Link to comment https://forums.phpfreaks.com/topic/205781-make-page-no-longer-available/ Share on other sites More sharing options...
ferrit91 Posted June 24, 2010 Share Posted June 24, 2010 ok, bare with me because im new, but if the users are saved on a database then add something in to like 'allowed' <? if(fetch allowed == yes){ ?> Page goes here <? }else{ echo"Sorry, you have already completed this page."; } ?> if its not done from a database maybe try adding it in a $_session and do the same but do <? if(!$_session[alowed]){ ?> Page goes here <? }else{ echo"Sorry, you have already completed this page."; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/205781-make-page-no-longer-available/#findComment-1076837 Share on other sites More sharing options...
mgmoses Posted June 25, 2010 Author Share Posted June 25, 2010 Thanks for the good ideas but in rethinking it I will leave it as is. Maybe the user would want to go back and print the page that he filled out for his records? The info does go to a database but its not that big a deal to see duplicate records in my case. Quote Link to comment https://forums.phpfreaks.com/topic/205781-make-page-no-longer-available/#findComment-1077146 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.