note 5298 deleted from Variables by ronabop

From: Date: Sat, 12 Aug 2000 21:56:46 +0000
Subject: note 5298 deleted from Variables by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1606@lists.php.net to get a copy of this message
OK, passing vars between two different pages, as discussed above, is easy. What about within one page? <pre> &lt;?php $somevar = "123"; ?> [ some HTML here ] &lt;?php echo ("$somevar"); ?> </pre> And $somevar has disappeared!? static and global dont help. Any way of doing this? I guess I'm really stupid or something cos this seems so basic.

« previous php.notes (#1606) next »