> 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" : "");?>> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]