$GLOBALS
Posted: Tue Jun 22, 2004 2:11 pm
Posted this before : something wrong with that post.
Keeps giving the error msg : 'Failed sending Mail'
I have this in test.php
PHP:
<?php
$GLOBALS['test']="anj";
echo '<A HREF="page.php">Jobs</A>';
?>
and this in page.php
PHP:
<?php
echo $GLOBALS['test'];
?>
It gives : Notice: Undefined index: test in page.php on line 2
register_globals = On
Still I cannot get to access superglobals
Anyone ? Thanks
PHP version 4.3.7
Keeps giving the error msg : 'Failed sending Mail'
I have this in test.php
PHP:
<?php
$GLOBALS['test']="anj";
echo '<A HREF="page.php">Jobs</A>';
?>
and this in page.php
PHP:
<?php
echo $GLOBALS['test'];
?>
It gives : Notice: Undefined index: test in page.php on line 2
register_globals = On
Still I cannot get to access superglobals
Anyone ? Thanks
PHP version 4.3.7