Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Form with multiple submits


Message #1 by bacster@o... on Thu, 19 Sep 2002 19:41:31
You're missing the closing </form> tags. Close each <form> block before 
you create another.

Tom

> Hi Folks

> Below is a test page that I am using.  When I press either of the submit 
b> uttons I want it to capture its own field as well as the radio button 
f> ield(R1).  I do not want it to pass the field from the unused submit 
b> uton.

> <html>
<> head>
<> meta http-equiv="Content-Type" content="text/html; charset=windows-
1252">
<> title>New Page 1</title>
<> /head>

> <body>

> <form method="GET" action="requestsniffer.asp">
 >  <p><input type="radio" value="V1" checked name="R1"></p>
 >  <p><input type="radio" value="V2" name="R1"></p>
 >  <p><input type="radio" value="V3" name="R1"></p>

> <form>
 >  <p><input type="text" name="T1" size="20">
 >  <input type="submit" value="Submit" name="B1"><input type="reset" 
v> alue="Reset" name="B2">

> <form>
 >  <p><select size="1" name="D1">
 >  <option>hello</option>
 >  <option>goodbye</option>
 >   </select>
 >   <input type="submit" value="Submit" name="B1"><input type="reset" 
v> alue="Reset" name="B2"></p>
<> /form>
<> /body>
<> /html>

> This is driving me insane.  All help much appreciated.

> Joe

  Return to Index