Re: Nested PHP

From: Date: Mon, 02 Feb 2004 10:48:24 +0000
Subject: Re: Nested PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-176567@lists.php.net to get a copy of this message
you can also do stuff like this... <?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 | jon@jben.net 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


« previous php.general (#176567) next »