te*******@gmail.com wrote:
Hi,
why does
<?php
$page=1;
if (defined ($page))
{
print "page defined";
$pg=$page;
}
else print"page not defined";
?>
outputs
page not define
????
-Ted
From the manual:
"defined — Checks whether a given named constant exists"
$page is not a constant, to the return value is correct. For variables,
use isset().
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================