<?php
if ($someVar == true) {
?>
<html> <title>someVar appears to be true</title>
<?php } else { ?>
<html> <title>someVar appears to be false</title>
<?php } ?>
Thanks,
Jon
jon bennett | [EMAIL PROTECTED] new media creative _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD t: +44 (0) 1225 341039 w: http://www.jben.net/ iChat (AIM): jbendotnet
On 1 Feb 2004, at 16:44, John Nichel wrote:
Russell Shaw wrote:
Hi, I have php code embedded in html, that is read by apache. Is nested php code allowable such as: <? $phpcode="<? echo \"< some html >\" ?>"; ?> ... <html> ... <body> <? echo "$phpcode" ?> </body> </html>
Yes.
-- By-Tor.com It's all about the Rush http://www.by-tor.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php