two options in one page
Posted: Sun Feb 27, 2005 11:12 am
Hye
I'm currently desiging an online ordering system for a restaurant.
My question is in regards to the post function.
I want to use two radio group to post and want to know if one button can send it two post actions
the sample code is as follows
The above code shows a form split in two but on one has a submit button and one doest. I want to know if the user selects the submitt button that both post values are posted to the different scripts?
Would i have to take the button out of the form to execute it for both
Shab
I'm currently desiging an online ordering system for a restaurant.
My question is in regards to the post function.
I want to use two radio group to post and want to know if one button can send it two post actions
the sample code is as follows
Code: Select all
</head>
<body>
<form name="form1" method="post" action="first post action">
<p>
<label>
<input type="radio" name="RadioGroup1" value="radio">
Radio</label>
<br>
<label>
<input type="radio" name="RadioGroup1" value="radio">
Radio</label>
<br>
<label>
<input type="radio" name="RadioGroup1" value="radio">
Radio</label>
<br>
<label>
<input type="radio" name="RadioGroup1" value="radio">
Radio</label>
<br>
<input type="submit" name="Submit" value="Submit">
<label> </label>
</p>
<p>
<label> </label>
</p>
</form>
<p> </p>
<form name="form2" method="post" action="secondpost">
<p>
<label></label>
<label>
<input type="radio" name="RadioGroup2" value="radio">
Radio</label>
<br>
<label>
<input type="radio" name="RadioGroup2" value="radio">
Radio</label>
<br>
<label>
<input type="radio" name="RadioGroup2" value="radio">
Radio</label>
<br>
</p>
</form>
<p> </p>
</body>
</html>Would i have to take the button out of the form to execute it for both
Shab