Re: eval on php embedded html
| From: | Atanas Vassilev | Date: | Thu, 24 Jan 2002 17:41:46 +0000 |
| Subject: | Re: eval on php embedded html | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81919@lists.php.net to get a copy of this message | ||
> So, either:
>
> <? if ($radiobutton1 == "on") { print "selected"; } ?>
>
> Or
>
> <? if ($radiobutton1 == "on") print "selected"; ?>
I found it very convenient for in-html coding to use the following
structure:
<input blabla bla <? echo($radiobutton1 == "on" ? "selected" :
"");?>>