Page 1 of 1

two options in one page

Posted: Sun Feb 27, 2005 11:12 am
by shab620
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

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>&nbsp;</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>&nbsp;</p>
</body>
</html>
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

Posted: Sun Feb 27, 2005 12:15 pm
by feyd
Each form requires a seperate page request to submit. So no.

Posted: Sun Feb 27, 2005 12:41 pm
by shab620
ok, thanks for the Information

shab

Posted: Sun Feb 27, 2005 12:42 pm
by feyd
why not place them together, or span them across two pages?