select value not working

krackerjax 17 Jul, 2008
I have a form that uses a select dropdown box. Below is the coding for the box:

<label>
<select name="price" id="select">
<option>Select Price Range</option>
<option value="$2,500<">$2,500<</option>
<option value="$2,500 - $5,000">$2,500 - $5,000</option>
<option value="$5,000 - $10,000">$5,000 - $10,000</option>
<option value="$10,000 - $15,000">$10,000 - $15,000</option>
<option value="$15,000 - $20,000">$15,000 - $20,000</option>
<option value="$20,000+">$20,000+</option>
</select>
</label>


If I select $20,000+, the form sends me, ",000+". Is there an issue because I have a comma in there?
GreyHead 18 Jul, 2008
Hi krackerjax,

I don't see why but most likely that's the problem. In general it's better to keep 'values' simple as using complex phrases makes it much harder to work with the results and more prone to this kind of problem. I'd use something like 2.5, 5, 10, 15, 20, 999 here. You can always use an array in the OnSubmit box to re-interpret the values later.

Bob
This topic is locked and no more replies can be posted.