You are here: Re: how to check a radio button « HTML « IT news, forums, messages
Re: how to check a radio button

Posted by Bob Long on 01/27/00 11:43

In news:1xj8psry8psub.dlg@markparnell.com.au,
Mark Parnell <webmaster@clarkecomputers.com.au> typed:
> Deciding to do something for the good of humanity, juicy
> <juicy_119@nospam.yahoo.com> declared in alt.html:
>
> > <?php if($c = 1){ ?>
>
> Will always return true. I think you mean <?php if($c == 1){ ?>.
> http://www.php.net/manual/en/language.operators.comparison.php
>
> > Please give some idea or useful links. Thanks.
>
> <?php if($c == 1) { ?>
> <input type="radio" checked="checked" value="1" name="c">
> <input type="radio" value="2" name="c">
> <? } else { ?>
> <input type="radio" value="1" name="c">
> <input type="radio" checked="checked" value="2" name="c">
> <? } ?>

Is it 'checked="checked"'? Or simply 'checked'? As in:

<input type="radio" checked value="2" name="c">

--
Bob Long

 

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

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