Learning PHP and MySQL

Example 13-12 Registering a variable by including it in $_SESSION

<?php session_start();
$_SESSION['hello']  =  'Hello  World';
echo  
$_SESSION['hello'];
?>

Posted by on 09/25 at 11:35 AM

Next entry: Example 13-13 Referencing a variable set on a prior page in the session

Previous entry: Example 13-11 Registering a variable with session_register

<< Back to main