hi folks,
i'm having a problem using eval.
i have some html code interdispersed with php code (proper statement not
just variables) in a database. when i fetch the code and display it using :
$reg_adv_html=addslashes($reg_adv_html);
eval(\$reg_adv_html = \$reg_adv_html\;);
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
2 matches
Mail list logo