Hi to everyone,
Please i would be grateful if you help me with this. This is a tutorial i am practising .When i create a session variable on a page , I find it difficult to show it on another page. Please check also to see whether the scripts are correct and if you could offer me alternatives.
Here are the excepts for the code:
First script for first page: register_session_var.php
[B]<?php
session_start();
$my="blue";
session_register("my");
echo "<a href='show_session_var.php'>Click here to go to next page</a>";
?>[/B]
Second page: show_session_var.php
[B]<?php
session_start();
echo "My favouite color is...." . $my;
?>[/B]
Hope to get solution soon.Thanks.