RE: [PHP] setting Check box
| From: | Jason Murray | Date: | Tue, 27 Mar 2001 04:59:06 +0000 |
| Subject: | RE: [PHP] setting Check box | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45693@lists.php.net to get a copy of this message | ||
> ok I've changed it the SELECT to CHECKED but it had no effect ...
> <input type="checkbox" name="avail" value="" <? if ($avail
> ==
> 'n') { echo 'CHECKED'; }?>>
>
> I've also tried it with a "n" value so it reads like
> <input type="checkbox" name="avail" value="n" <? if ($avail
>
> == 'n') { echo 'CHECKED'; }?>> but that didn't have any luck
> either ... is there anything else i can do?
Send some code to the list, ie the full statement? If you're in
an echo "........" statement, of course you can't drop into <?if {}?>
commands, etc.
Jason