hazel Posted June 13, 2006 Share Posted June 13, 2006 HiAnybody knows how to display datas in a page depending on the selection made on the previous page??? Selection on the previous page using <a href </a> for user to select. I do not know how to capture the value that user had selected and make it useable on the page that need it to display the datas.hope i made myself clear. Link to comment Share on other sites More sharing options...
Little Goat Posted June 13, 2006 Share Posted June 13, 2006 do this: <a href="yourpage.php?variable=value">hi</a>then on yourpage.php you can access that variable with $_GET['variable'] Link to comment Share on other sites More sharing options...
hazel Posted June 13, 2006 Author Share Posted June 13, 2006 Thanks little goatdo you include a GET method form as well in the <a href="yourpage.php?variable=value">hi</a>?And the $_GET['variable'] can be written at another page? Link to comment Share on other sites More sharing options...
Little Goat Posted June 14, 2006 Share Posted June 14, 2006 no, if you do just that, then on the next page if you say echo $_GET['variable'] it will output value. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now