$GLOBALS

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

$GLOBALS

Post by anjanesh »

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
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

I do not following what u are trying to do.
User avatar
wwwapu
Forum Contributor
Posts: 197
Joined: Wed Apr 07, 2004 11:57 am
Location: Turku, Finland

Post by wwwapu »

See your previous viewtopic.php?t=23003 answered there.
Post Reply