|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Deselect the Radio Button
Hi,
I am new to PHP.How do deselect the selected radio button.I have 4 radio button . If i select one radio button .Then How do the selected radio button go to deselected whenever i click the submit button. Anybody help me?? Thanx |
|
#2
|
||||
|
||||
|
radio inputs
Quote:
If the inputs are in a form, and none of them are initially given the selected value, all you need to do is add a reset button to the form. |
|
#3
|
||||
|
||||
|
This isn't a PHP issue, it's standard HTML behaviour.
The easiest way is to make sure the set all has the same name. Code:
<input name="fruit" value="Apple"> Apple <br> <input name="fruit" value="Orange"> Orange <br> <input name="fruit" value="Banana"> Banana <br> To put it in perspective for you, in PHP you would get the value of the selected field using $_GET['fruit'] or $_POST['fruit'] Hopefully this helps? ![]()
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
|
#4
|
||||
|
||||
|
Moved to Web Development forum, as question relates more towards standard HTML behaviour than PHP
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > Deselect the Radio Button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|