Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update my db when one of these radio button is selected? 1

Status
Not open for further replies.

crmpicco

Programmer
Nov 29, 2004
66
GB
Test<input type="radio" id="status_test" name="status_test" value="Yes" checked>
Delete<input type="radio" id="status_delete" name="status_delete" value="Yes">
Live<input type="radio" name="status_live" value="Yes">

how do i update my db when one of these radio button is selected?

table name: net_fares
column_name: status.

picco
 
use an iframe:
<input type="radio" id="status_test" name="status_test" value="Yes" onclick="parent.frames.IFRM.location.href='TheFile.asp?action=Something'">

<iframe name="IFRM" height=0 width=0></iframe>

Known is handfull, Unknown is worldfull
 
Depends on your server-side scripting, since HTML cannot process anything, being only a markup language.

When you submit the page, the checked radio buttons will be carried over to the next page via the specified method in the form and you will be able to use that data. I am not sure what exactly you are asking:

1. If it is how to manipulate data sent over the form, visit one of the server side scripting forums, like PHP, or ASP, depending on what you use.

2. If it is sending the form automatically when radiobutton is selected, look into JavaScript forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top