pkarthicbz pkarthicbz - 1 year ago 67
PHP Question

how to store a link name in variable on another page

I have assigned a variable to store the link names when i click

echo "<a href ='details.php?id=".$row[0]."<br>'>".$row[0]."<br><br></a>";

so i can get the link name on next page by doing

$id = $_GET['id'];

the above code works fine on next page.

But i want to get the same id value on another page also. when i put the same code as above it doesn't work. so how do i get it. i have three page.

Answer Source

Get is just sent to the server ONCE. You need to store it. For example you could use sessions in php.

This stores the id.


Know you can access the id, until the user resets the browser...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download