Hi,
I'm unsure if what I'm trying to do is possible, thank you in advance for your advice.
I'm trying to design a page that will show information based on selections made by the user. For example;
I'm logged in so the page shows me all the leagues that I play in as a series of forms which just show one button each. These forms submit the variable for the league name - so far so good.
I can set the action for these forms as 'somefile.php' and assign the $POST[league] to the $SESSION and echo this value, so I know that the data is being passed correctly by the form.
What i want to do though is set the form action to something that will allow me to reload the same page, now with the $_SESSION['league'] variable set and as a result show the games within that league. So each time a player presses teh button for a new league the relevant games are shown.
Can this be done?
I've tried to set the form handler to redirect back to the page using header() but it doesn't seem to pass the $_SESSION['league'] variable back so the function for checking if the league is set fails?
I'm quite sure I've probably not included all the info needed to answer this so please let me know if anything doesn't make sense?
Many thanks,
Stephen