The way that my data is interpreted on my page is by using variable in the URL. The standard structure is: /frontend.php?p=502&s=56&y=2010
Where p = player id
s = statistic id
and y = year
I am trying to implement a drop down selection list on the page where users can change the statistic.
Here is my code. Any help would be very appreciated!
Expand|Select|Wrap|Line Numbers
- <form action="/frontend.php?p=<?= $player_id; ?>&" method="get" >
- <select id="stat" name="s" style="width: 215px">
- <option>-- Statistic --</option>
- <?php foreach( getStatistics() as $id => $name ){ ?>
- <option value="<?= $id; ?>"><?= $name; ?></option>
- <?php } ?>
- </select>
- <input type="submit" value="Graph" style="height: 25px; width: 200px">
- </form>