Jump to content

radio button


cemzafer

Recommended Posts

You need to use inside your input tag checked="checked".

Example-
[code]<form>
Male:
<input type="radio" checked="checked"
name="Sex" value="male">
<br>
Female:
<input type="radio"
name="Sex" value="female">
</form>[/code]

The radio button that represents "male" will be checked.


So you you find out which button is selected in the database, and add the "checked=checked" part to the button that should be checked.

Orio.
Link to comment
https://forums.phpfreaks.com/topic/28095-radio-button/#findComment-128513
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.