I have a rather larger form and when it submits it posts to the same page as the form and runs the PHP validation.
Basically if all is validated correctly I want to then show a different page with all the information that has been posted on it a sort of report or confirmation allowing the user to print the report. The data in the form is not stored in any database its just emailed off.
What I am having trouble with is retrieving the values as the form action is not going to the report page just itself. I therefore need some advice.
Should I look for a way of changing the form action location with an if i.e. if all valid echo report.php but this would require the user to resubmit the form, or is there a better way?
Your advice would be greatly received.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…