Hi all!
We have a problem with the POST variables.
We have a form that sends to a php script his variables with POST method. The php script insert the values in a MySQL Database and then shows a message screen. The problem is when we click to the back button of the browser appears a page telling variables are expired. Press reload to repost from data.
How can we solve that problem? We can't send all the varialbles with the GET method beacause there are a lot.
Example, we have the next 3 files:
intro.phtml
... <form action="script.php method="post">
Write: <input type="text" name="test_var">
...
</form>
...
script.php
...
INSERT INTO testing_db (something) VALUES ('$test_var'); // $test_var is the var that comes from the form.
// Now we redirect the user to a message screen.
header ("Location:../msgs/OK.html");
OK.html
<H1>Operation Done</H1>
Thanks in advance.
PiLoT & Jazze