rawky1976 Posted August 14, 2007 Share Posted August 14, 2007 echo "<tr><td width=\"100%\"><a href=\"">$sn $fn</a></td></tr>"; Above is a link with returned record fields in it. What should be inside the anchor to make it load a page called editSearchedUser.php ...and also carry the value of $sn with it to use in a select statement on that page? Quote Link to comment https://forums.phpfreaks.com/topic/64920-solved-links-back-to-edit-page-passing-data-with-them/ Share on other sites More sharing options...
lemmin Posted August 14, 2007 Share Posted August 14, 2007 <a href=\"editSearcheduser.php?something=$sn\"> The $_GET array will hold the value of $sn in the key something (or whatever you change that to.) Quote Link to comment https://forums.phpfreaks.com/topic/64920-solved-links-back-to-edit-page-passing-data-with-them/#findComment-323923 Share on other sites More sharing options...
rawky1976 Posted August 14, 2007 Author Share Posted August 14, 2007 I'm not quite sure about the 'something' bit sorry? Quote Link to comment https://forums.phpfreaks.com/topic/64920-solved-links-back-to-edit-page-passing-data-with-them/#findComment-323927 Share on other sites More sharing options...
GingerRobot Posted August 14, 2007 Share Posted August 14, 2007 The 'something' bit is just an example of the name of your key within the GET array. So, on editSearcheduser.php, you could do something like: <?php $user = $_GET['something']; echo $user; ?> Quote Link to comment https://forums.phpfreaks.com/topic/64920-solved-links-back-to-edit-page-passing-data-with-them/#findComment-323930 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.