Hi,
I have the following code:
The issue I have is that $vv seems to be £100 more than $ss.
If I select £400 - £500 from the drop down, the value it uses is £300 - £400.
Can anybody help?
Thanks
I have the following code:
PHP:
<?php
//foreach($prices as $key=>$val)
for($i=0; $i<=1000; $i=$i+100)
{
$ss = substr(strval($i),0,1);
$ss = $ss.",100";
$p = number_format($i,2,".",",");
$vv = "£".($i)."-£".($i+100);
$jj = str_replace(",","%2C",$ss);
?>
<option value="<?php echo $ss?>" <?php if(isset($_REQUEST['price']) && $_REQUEST['price']==$ss) echo "selected='selected'";?>><?php echo $vv;?></option>
<?php
}
?>
If I select £400 - £500 from the drop down, the value it uses is £300 - £400.
Can anybody help?
Thanks