note 5298 deleted from Variables by ronabop
| From: | ronabop@php.net | 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>
<?php
$somevar = "123";
?>
[ some HTML here ]
<?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.