Jump to content

Make page no longer available


mgmoses

Recommended Posts

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!  :shrug:

Link to comment
https://forums.phpfreaks.com/topic/205781-make-page-no-longer-available/
Share on other sites

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.";

} ?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.