rx3mer Posted November 24, 2013 Share Posted November 24, 2013 (edited) Hi guys, I am trying to pass an ID with a session to another page. -------- ID: 10 - edit link -------- ID: 11 - edit link -------- ID: 12 - edit link -------- The problem that I am having is that the session stored is always the last ID, in this case 12. $info["HostID"]; comes from the DB. <?php $link = $info["HostID"]; echo '<td><a href="edit.php?id='.$link.'">Edit</a></td>'; ?> <?php if(isset($_GET['$link'])){$_SESSION['hostid'] = $_GET['$link'];} ?> Any suggestions? Edited November 24, 2013 by rx3mer Quote Link to comment Share on other sites More sharing options...
rx3mer Posted November 25, 2013 Author Share Posted November 25, 2013 Problem solved. Had to pass on the ID with GET and then I can store it in a session. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.