DEVPPL
http://www.devppl.com/forum/

Submitting few elements of a form
http://www.devppl.com/forum/viewtopic.php?f=51&t=13502
Page 1 of 1

Author:  gamodg [ Mon May 04, 2009 4:00 am ]
Post subject:  Submitting few elements of a form

Hi

I have a form that has a table.
Like

Code:
th->  Select          IP          SubnetMask          PSTN         

tr->    radio        1.2.3.4     255.0.0.0             Enabled       
tr->    radio        2.3.4.5     255.255.0.0          Disabled     
tr->    radio        2.3.4.6     255.255.0.0          Disabled     
tr->    radio        2.3.4.7     255.255.0.0          Disabled     
tr->    radio        2.3.4.8     255.255.0.0          Disabled     


When I click on submit button I want that the row selected by radio button should only get submitted.
Please suggest me a way to handle this situation.

Author:  Johnathan [ Tue May 05, 2009 7:28 am ]
Post subject:  Re: Submitting few elements of a form

Code:
<input type="radio" name="radio" value="12345"/>
<input type="radio" name="radio" value="67890"/>
<input type="submit"/>


Keep the name of all your radio fields the same and what gets submitted is what's in value=""
HTH

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/