View Single Post
  #22  
Old May 16th, 2013, 06:07 PM
urbaniteuk urbaniteuk is offline
 
Join Date: Apr 2013
Posts: 120
Default

Is this correct?

<form method="get">

<!-- Category drop down select menu -->

<select name="c">
<option value="1127898">All Events</option>
<option value="1127899">Sporting Events</option>
</select>

<!-- Merchant drop down select menu -->
<select name="merchant">
<?php echo dfr_get_merchants($category); ?>
</select>

<!-- Price filter -->
<select name="price">
<option value="-100"<?php if ($_GET['price'] == '-100') { echo ' selected="selected"'; } ?>>Less than 100</option>
<option value="100-250"<?php if ($_GET['price'] == '100-250') { echo ' selected="selected"'; } ?>>Between 100 and 250</option>
<option value="250-500"<?php if ($_GET['price'] == '250-500') { echo ' selected="selected"'; } ?>>Between 250 and 500</option>
<option value="500-1000"<?php if ($_GET['price'] == '500-1000') { echo ' selected="selected"'; } ?>>Between 500 and 1,000</option>
<option value="1000-"<?php if ($_GET['price'] == '1000-') { echo ' selected="selected"'; } ?>>Over 1,000</option>
</select>

<input type="submit" value="Search" />

</form>

Last edited by urbaniteuk : May 16th, 2013 at 06:09 PM.