Forum Moderators: open
<form method="post" action="program.pl" name="hello">
<select name="choices">
<option value="these are embedded spaces">Choice 1</option>
<option value="more embedded spaces">Choice 2</option>
</select>
</form>
Will it cause problems in any browsers or is the fact that it's a POST method cause the spaces to automatically get inserted?
The only escaping you have to worry about there is making sure that the attribute values are valid HTML, so things like '&' need to be escaped as '&'. They'll get sent as just '&' when the form is submitted, so you don't need to worry about that on the receiving end.