In a webpage I put a formulary that uses “get” and “post” methods.
The form in this first page sends all the data to another .php file that evaluates the data. If there is a problem, the second page heads to the first page, writing an url with more variables to be obtained with the get method by the first page, and the same variables that this second page received by the “post” method, using:
header(“HTTP/1.0 307 Temporary redirect”);
header(“location: firstpage.php?data1=xxx&data2=xxx”)
The problem is that when I submit the form in the first page, the browser takes a lot of time only to say “second page not found”.
If I quit the line
header(“HTTP/1.0 307 Temporary redirect”)
of the code of the second page, the form works correctly and i go back to the first page again, with the “get” data, but obviously, I loose all the “post” data.
What I want to say with this, is that the problem with “page not found” is caused by the code line of the “temporary redirect”. But, why? Thanks for your answers.