467,212 Members | 1,185 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,212 developers. It's quick & easy.

white space in select option

Hi,
I'm having a problem with a <select><option> which has white space in
values...

When I post the data I only get the first word (up to the white space).
"Testing white space" becomes "Testing" after posting

code...

<select name="descr" id="descr">
<option value=Testing white space>Testing white space</option>
<option value=Testing white space two>Testing white space two</option>
<option value=Testing white space th>Testing white space th</option>
</select>

I am using form method = post and have also tried method = get

How do I get the full string from the value field.

Any help would be appreciated,
Thanks,
shagy


Dec 27 '05 #1
  • viewed: 5094
Share:
2 Replies
shagy wrote:
When I post the data I only get the first word (up to the white
space). "Testing white space" becomes "Testing" after posting

code...

<select name="descr" id="descr">
<option value=Testing white space>Testing white space</option>
<option value=Testing white space two>Testing white space
two</option> <option value=Testing white space th>Testing white
space th</option> </select>


Either do:

<option value="Testing white space">Testing white space</option>

Or just:

<option>Testing white space</option>
JW
Dec 27 '05 #2
Janwillem Borleffs wrote:
shagy wrote:
When I post the data I only get the first word (up to the white
space). "Testing white space" becomes "Testing" after posting

code...

<select name="descr" id="descr">
<option value=Testing white space>Testing white space</option>
<option value=Testing white space two>Testing white space
two</option> <option value=Testing white space th>Testing white
space th</option> </select>


Either do:

<option value="Testing white space">Testing white space</option>

Or just:

<option>Testing white space</option>
JW

Thanks :-)
Dec 27 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Grumble | last post: by
1 post views Thread by Helge Ruistuen | last post: by
1 post views Thread by Mark247 | last post: by
2 posts views Thread by Malcolm Dew-Jones | last post: by
45 posts views Thread by Stephen Poley | last post: by
5 posts views Thread by Richard Maher | last post: by
15 posts views Thread by Spiros Bousbouras | last post: by
5 posts views Thread by Lawrence Krubner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.