View Single Post
  #4  
Old February 4th, 2011, 04:22 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

The problem is you did not close your <input> tags. You basically had this:

<input type="hidden" name="word" value="' . search_price_value($_GET['word']) . '"

but it should be this:

<input type="hidden" name="word" value="' . search_price_value($_GET['word']) . '" />

HTML Code:
<?php
function search_price_value($word) {
    $word = strip_tags($word);
    return $word;
}
?>

<form method="get">
    <?php 
    
    if (@$_GET['word']) { 
    	echo '<INPUT TYPE="HIDDEN" NAME="word" Value="' . search_price_value($_GET['word']) . '" />'; 
    }
    
    if (@$_GET['ppp']) { 
    	echo '<INPUT TYPE="HIDDEN" NAME="ppp" Value="' . search_price_value($_GET['ppp']) . '" />'; 
    }
    
    if (@$_GET['sort']) { 
    	echo '<INPUT TYPE="HIDDEN" NAME="sort" Value="' . search_price_value($_GET['sort']) . '" />'; 
    }
    
    ?>

  <select name="price" id='store_dropdown_box'>
<option value="1-50"<?php if (@$_GET['price']=='1-50') {echo ' selected="selected"';}?>>Moins de 50</option>
<option value="50-100"<?php if (@$_GET['price']=='50-100') {echo ' selected="selected"';}?>>50 ~ 100</option>
<option value="100-150"<?php if (@$_GET['price']=='100-150') {echo ' selected="selected"';}?>>100 ~ 150</option>
<option value="150-200"<?php if (@$_GET['price']=='150-200') {echo ' selected="selected"';}?>>150 ~ 200</option>
<option value="200-250"<?php if (@$_GET['price']=='200-250') {echo ' selected="selected"';}?>>200 ~ 250</option>
<option value="250-"<?php if (@$_GET['price']=='250-') {echo ' selected="selected"';}?>>Plus de 250</option>

    </select>
    <input type="submit" value="Go" class="dfsbmt" />
</form>
  
<?php if (@$_GET['price']) { ?>
  <p><a href="[server.url type='fullpage' query='-price']">[X] Remove Filter</a></p>
<?php } ?>