jkkenzie Posted May 10, 2008 Share Posted May 10, 2008 I have a link i.e <a href="blahblah">View Graph</a>, is it possible for this link to carry some variables using $_POST or $_GET. So that when the other page opens, it uses the variables to do other processes.. I know how to use a form to POST but in this case i want to use a link. If you want to suggest the ISSET function, am displaying a graph and it does not show with other images or data on the same page. Thanks. Joseph Link to comment https://forums.phpfreaks.com/topic/104995-post-using-a-link/ Share on other sites More sharing options...
micmania1 Posted May 10, 2008 Share Posted May 10, 2008 <a href="mypage.php?variable=value">Link</a> To access the variable, use GET. echo $_GET['variable']; Link to comment https://forums.phpfreaks.com/topic/104995-post-using-a-link/#findComment-537417 Share on other sites More sharing options...
jkkenzie Posted May 10, 2008 Author Share Posted May 10, 2008 How about two variables or more than one? Link to comment https://forums.phpfreaks.com/topic/104995-post-using-a-link/#findComment-537421 Share on other sites More sharing options...
micmania1 Posted May 10, 2008 Share Posted May 10, 2008 <a href="mypage.php?varable=value&another=anotherValue">LINK</a> Link to comment https://forums.phpfreaks.com/topic/104995-post-using-a-link/#findComment-537424 Share on other sites More sharing options...
jkkenzie Posted May 10, 2008 Author Share Posted May 10, 2008 Thanks Link to comment https://forums.phpfreaks.com/topic/104995-post-using-a-link/#findComment-537432 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.