I have 15 links on a page. There are different types of mysql queries on all those linked pages. I am getting the variable for these queries from another page by passing that variable through URL.
When I open the first page , it works fine and I am using session to pass that variable value to the rest of the linked pages. I can reach variable on all those pages. But as soon as I leave the first page, I can't open that page again. I am getting that variable on the first page by $_GET and passing values to other pages by sessions.
I can open all other pages as many times as I want but I can't open the first page again. Am I making some mistake with the GET and SESSIONS? I am using this session on first page. I am using this name variable on all other pages.
Code: Select all
session_start();
$_SESSION['name']=$_GET['name'];Code: Select all
Notice: Undefined index: name in c:\program files\.................php on line 5Thanks