Is it legal for an if...else statement to span PHP code blocks? Here's
an example:
<?
$a = 0;
if ($a < 5) {
$b = 50;
$c=500;
// Take a break from php and put in some HTML
?>
<HTML>
<HEAD></HEAD>
<BODY>MORE HTML CODE HERE</BODY>
</HTML>
<?
// Now back to the PHP code
$d = 250;
}
else {
$e = "Does not apply."
}
?>
I have some code similar to this example. When I run the code in my
browser, I get a parse error on the last line (?>).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php