472,102 Members | 1,196 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,102 software developers and data experts.

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
2 6021
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 Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.