Ell20 Posted January 28, 2008 Share Posted January 28, 2008 Hi, I have a page called fixtures.php which simply displays the fixtures for a club, each fixture also has a button which takes you to a page called teamselection.php. However at the moment once the button has been pressed the user then has to select the fixture from the drop down box to view the team selection, whereas I would ideally like it so that when the button is pressed it goes to the teamselection.php with the team selection for the specific fixture to be displayed. I guess I have to do like &mode=selection on fixture_id or something simular but I cant put my finger on how to do it? Appreciate any help Quote Link to comment Share on other sites More sharing options...
prime Posted January 28, 2008 Share Posted January 28, 2008 what your asking is a simple use of the $_GET[] what you need is that each hyper link from say example.com/fixtures.php to link to example.com/teamselection.php and remember but remember what you chose from the first what you need to do is simple when you say create a hyperlink for say lamp example.com/teamselection.php?f=lamp this creates a get variable with the value of lamp assigned to f to get this from the fixtures page you would simply do this $fixture = $_GET['f']; the4n it's just a matter of if and else to determine the selection such as if($fixture == "lamp") { //execute this code } elseif($fixture == "tv"); { do this code } else { //do this } 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.