phpsnipes Posted July 18, 2007 Share Posted July 18, 2007 Hey guys, I have some html embedded into my php application. I have a table and based on certain things, I need to be able to launch a new report from a certain row of the table. So, I am using <a href = "http://...">Something</a>. Now my question is, how can I pass on information about "Something" to the page which will be launched? I know I can do it with forms and call $POST or $GET to obtain info from a form, but I don't want to do that as that would make the table look hideous. So basically, how do you pass in parameters through a hyperlink and how would the new page be able to extract the values of the parameters passed in? I would be really grateful if someone could answer my question. Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/60477-solved-passing-parameters-through-the-tag/ Share on other sites More sharing options...
AndyB Posted July 18, 2007 Share Posted July 18, 2007 example link [code\<a href="nextpage.php?this=1&that=2&other=wombat>click</a> and in nextpage.php <?php $this = $_GET['this']; // equals 1 $that = $_GET['that']; // equals 2 $other = $_GET['other']; // equals "wombat" ... ?> Link to comment https://forums.phpfreaks.com/topic/60477-solved-passing-parameters-through-the-tag/#findComment-300846 Share on other sites More sharing options...
phpsnipes Posted July 18, 2007 Author Share Posted July 18, 2007 This is perfect, thank you for such a quick response! Link to comment https://forums.phpfreaks.com/topic/60477-solved-passing-parameters-through-the-tag/#findComment-300850 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.