I just added the following Form to my webpage…
<form id="sort_comments" action="" method="get">
<div class='commentsBar'>
<div class="drop">
<label for="sortrequest">Sort by:</label>
<select name="sortrequest">
<option value="by-date-desc" >Date (Newest 1st)</option>
<option value="by-date-asc" >Date (Oldest 1st)</option>
</select>
<input type='submit' name='submit' value='Go'/>
</div>
</div>
</form>
Then I added this to the top of my script…
var_dump($_GET);
If I load the page, choose a value in the drop-down, and submit the form, I am not getting any $_GET value for the drop-down…
Any idea what is wrong?
This is driving me crazy debugging!!!
Sincerely,
Debbie