redirect to a new page with post data in Javascript
Posted
by Mick
on Stack Overflow
See other posts from Stack Overflow
or by Mick
Published on 2010-03-28T08:42:26Z
Indexed on
2010/03/28
8:43 UTC
Read the original article
Hit count: 720
Hi , I have a html form with the data by this post method
'form id='form1' name='form1' method='post' action='process.php'etc '
to a php page for processing into a mysql database . When the user has filled in the form BEFORE submitting it I have a button that the user can click to open up a new page to display a pdf of the data entered. The new pdf file is generated fine but what I need in it is the post data from the form. In the pdf page I can use POST to get the detail. What I need is a method of sending the data from the form to this new page without using the form tag above as it is needed for the processing of the form. What I am looking for is a js method to redirect to a new page with the post data intact
Can anybody help please ? , any help is much appreciated ! Mick
© Stack Overflow or respective owner