Hi,
I have a situation where I've got a form which has various data input fields. I need to then present the user with various options, e.g.
- submit form
- submit form and open new page
- submit form and open another new page
with the code looking perhaps something like this
I'm thinking that whichever option is selected I need to submit the data collected to the next asp(submitformdetails.asp), but also perform another action (e.g. include file, or redirect page) dependant upon which button has been clicked.
My problem really is how to achieve this; I've had a number of thoughts including (somehow) using javascript to control the form action dependant on which button clicked or (again, somehow!) detecting which button has been clicked on the "submitformdetails.asp" page.
I hope this makes sense, and if anyone had any thoughts or ideas regarding this I would be delighted to hear them!
I have a situation where I've got a form which has various data input fields. I need to then present the user with various options, e.g.
- submit form
- submit form and open new page
- submit form and open another new page
with the code looking perhaps something like this
Code:
...
<form name="form1" method="post" action="submitformdetails.asp">
<input type="text" name="text1"
...
<input type="text" name="text8"
<input type="submit" name="submit_details">
<input type="submit" name="submit_details_and_open_page_1">
<input type="submit" name="submit_details_and_open_page_2">
</form>
....
I'm thinking that whichever option is selected I need to submit the data collected to the next asp(submitformdetails.asp), but also perform another action (e.g. include file, or redirect page) dependant upon which button has been clicked.
My problem really is how to achieve this; I've had a number of thoughts including (somehow) using javascript to control the form action dependant on which button clicked or (again, somehow!) detecting which button has been clicked on the "submitformdetails.asp" page.
I hope this makes sense, and if anyone had any thoughts or ideas regarding this I would be delighted to hear them!