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:[EMAIL PROTECTED] 
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'];

?>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to