RE: [PHP] session
| From: | Adrian Portsmouth | Date: | Mon, 02 Jun 2003 07:03:26 +0000 |
| Subject: | RE: [PHP] session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149782@lists.php.net to get a copy of this message | ||
The value isn't available until the next page and you should register
with
$_SESSION["name"]=$_POST["name"];
HTH
Ade
www.phpscriptsearch.com
-----Original Message-----
From: Aris Santillan [mailto:aris@femalenetwork.com]
Sent: 02 June 2003 11:55
To: Php (E-mail)
Subject: [PHP] session
hi
this code
cant print the value
<?
session_start();
$name = $_POST['name'];
session_register('name');
echo $_SESSION['name'];
?>