I have a combo box that lets the user select his height.
Code:
<select id="PersonHeight" name="PersonHeight" style="height: 24px;">
<option value="" selected="selected"> </option>
<option value="4'">4'</option>
<option value="4' 1"">4' 1"</option>
<option value="4' 2"">4' 2"</option
etc.
For example, he can select 4' (i.e. four feet).
But when I retrieve the data via the $_POST variable I don't get 4'. Instead, it comes out as 4\'. That is, it's somehow inserting a backslash before the single quote, even though there's no single quote specified for either the value or the text of the option. The same thing happens with the double-quote (i.e. "foot") mark.
Why does this happen? Is there a way to tell it to NOT do this, and to simply return the actual value (without the backslashes)?