Thanks for the reply borris83
I am testing this and would let you know if this works :).
Thanks to all of you for your priceless time.
Printable View
I know , kindely you can add this code at the end :
replace : the form url herePHP Code:echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"3; url=the form url here\">";
write : the form page name , like index.php .
and it will fine ...
Try and let me know the result .
Thanks Ahmed Saleh.
But Where should this line be added in the code?
I mean in send.php file ? If yes, then where should this line be written ?PHP Code:echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"3; url=the form url here\">";
At top where variables are declared ? or at the end ?
Waiting for the reply...
Dear Ahmed Saleh,
Actually I tried it somewhere in my send.php (which now also working as thanks page as well). But issue is the page gets refreshed back to the Form by using the code:
I am looking for something if someone clicks on BACK BUTTON in BROWSER, the message should be that the page has expired or something similar. And this way, the form will not get submitted again or atleast the send.php will not get executed again.PHP Code:echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"3; url=order.htm\">";
By refereshing send.php file (i.e. now it is a thanks page), the code gets executed on the server once again.
Can we add any line at the bottom of send.php so that this page, even if refereshed, does nothing ?
if you want show : page expired message
put this at the first on send.php .
Now your script is working so good and like you want to be .:)PHP Code:
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Dear Ahmed Saleh,
Thanks once again for your help. But even after placing this code at top of my send.php, I am able to refresh it (i.e. thanks confirmation page). The form gets submits again, the order gets generated again :(
Hope there is a way so that even if someone refreshes the thanks confirmation page, it does not submits the form again.
Anyway, thanks a lots for your time.