Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re-submitting POST information 2

Status
Not open for further replies.

trickyray

Programmer
May 18, 2006
8
CA
Hi
I wrote some code to submit a form via POST to another page. I want to display the submitted information and ask that the user confirm that it is all correct before proceeding. So on the second page, I'd like to re-submit the POST information to a third page. Is there an easy way to do this?
Thanks
 
One way would be to create hidden fields for all the fields that were filled out previously, populate them from the $_POST global, and if the user clicks OK that everything is correct, the values will be passed to the next page.

Take Care,
Mike
 
Or just make another form that is read only, By making the fields read only. and make a submit button that says "Procede" or something.
 
Going with what dagger is suggesting you could post the first page back to itself and change all the fields to read-only using javascript, and then post to the next page.

Take Care,
Mike
 
There are so many ways to do this, and there really is no best way. It all depends on your overall situation and how your application is structured and built.

Do the method that works best for you, and you will see if there are flaws in it. Then work from there. :)

Take Care,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top