ciupaz
Programmer
- Jun 15, 2009
- 6
Hi all,
I have an HTML page (or .aspx page) with one form, containing several input elements, and 2 button (input type="submit"), like this example:
<form id="myForm" method="post" action="">
Client Name: <br />
<input type="text" id="clientName" name="clientName" />
Client Surname: <br />
<input type="text" id="clientSurname" name="clientSurname" />
<br />
<input type="submit" id="submit1" value="Go to page 1" />
<input type="submit" id="submit2" value="Go to page 2" />
</form>
My problem is to pass all input elements values (entered by users) to 2 different pages, accordingly pressed button.
For example if the user press button1, the "action" of my form is setted to Page1.htm, and if pressed button2, the action is setted to Page2.htm.
Of course in these two pages I must recover the input values (for example to populate some labels).
Anyone can help me to solve this problem?
Thanks in advance.
Luis
I have an HTML page (or .aspx page) with one form, containing several input elements, and 2 button (input type="submit"), like this example:
<form id="myForm" method="post" action="">
Client Name: <br />
<input type="text" id="clientName" name="clientName" />
Client Surname: <br />
<input type="text" id="clientSurname" name="clientSurname" />
<br />
<input type="submit" id="submit1" value="Go to page 1" />
<input type="submit" id="submit2" value="Go to page 2" />
</form>
My problem is to pass all input elements values (entered by users) to 2 different pages, accordingly pressed button.
For example if the user press button1, the "action" of my form is setted to Page1.htm, and if pressed button2, the action is setted to Page2.htm.
Of course in these two pages I must recover the input values (for example to populate some labels).
Anyone can help me to solve this problem?
Thanks in advance.
Luis