Re: is this syntax correct?
| From: | Christian Reiniger | Date: | Mon, 02 Apr 2001 10:45:35 +0000 |
| Subject: | Re: is this syntax correct? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46586@lists.php.net to get a copy of this message | ||
On Monday 02 April 2001 22:30, you wrote:
> Hi all
> is this syntax correct to work on session in php4?
>
> <?php
> global $test;
> $test = "foo";
> session_register("$test");
> ?>
>
> but nest page when I call variable $test to echo it, nothing come up?
> what did I do wrong? Jack
Use session_start();
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Pretty cool, the kind of power information technology puts in our hands
these days.
- Securityfocus on probing 36000000 hosts for known problems in 3 weeks