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]
|