[PHP] eval on php embedded html

2002-01-24 Thread DigitalKoala
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\;);

Re: [PHP] eval on php embedded html

2002-01-24 Thread Atanas Vassilev
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