By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,836 Members | 2,059 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,836 IT Pros & Developers. It's quick & easy.

white space in select option

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.