RE: [PHP] eval on php embedded html

From: Date: Thu, 24 Jan 2002 13:44:26 +0000
Subject: RE: [PHP] eval on php embedded html
Groups: php.general 
Request: Send a blank email to php-general+get-81875@lists.php.net to get a copy of this message
> <TD valign="center"><input type="radio" > name="radiobutton1" > value="reg1" <? if ($radiobutton1=="on") { print "selected"; > ?>> </TD> You either need to remove the opening {, or put a corresponding } at the end of the if() statement. So, either: <? if ($radiobutton1 == "on") { print "selected"; } ?> Or <? if ($radiobutton1 == "on") print "selected"; ?> HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net _____________________________________________________________________ This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. For further information visit http://www.uk.uu.net/products/security/virus/

« previous php.general (#81875) next »