You are here: How do I display the state of a radio button? « HTML « IT news, forums, messages
How do I display the state of a radio button?

Posted by Bob Sanderson on 11/02/06 16:39

I am using a PHP/HTML form to access a MySql database. Some of the entries
use radio buttons.

<td><input name="Flag1" type="radio" value="1" /></td>
<td><input name="Flag1" type="radio" value="2" /></td>
<td><input name="Flag1" type="radio" value="3" /></td>
<td><input name="Flag1" type="radio" value="4" /></td>

This part works fine. I have created a form to permit the operator to edit
a record. This form is identical to the input form and displays the data
for the record selected. What I can't figure out how to do is to display
the data in the radio button fields. The PHP script correctly returns the
data but I don't know how to check the correct button. It seems like this
would be a pretty common thing, but I haven't been able to find it.

Any help will be greatly appreciated.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация