I am working on a web application where I need to send the value from one form to more than one page.
My form is simple :
<form method="post">
<input type="text" name="name" value="">
...
</form>
I want the values from the form to be sent to :
- 'page1.php' which will replace the actual page containing the form displaying the message : data saved
- 'page2.php' which will open when I click the submit button to render the data as a PDF file
The problem is that I can only specify only one target using the action attribute of the form.
Anyone can helps ? Thanks in advance.
Could I use JavaScript or jQuery or other ?