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! Quote Link to comment 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" ... ?> Quote Link to comment 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! 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.