ok thanks to those who responded:

this is how i got it working:

echo("<option value=\"" . $row['location'] . "\">" .
trim($row['location']) . "</option>");          

Angelo

>>> Dan Joseph <[EMAIL PROTECTED]> 10/11/2004 4:43:56 PM >>>
> I have a select/option that gets populated with countries. The value
of
> these option are also set to the country name. The problem i have is
> that some countries have spaces in them
>
> eg: United States of America.
>
> When the form is posted and I echo the country variable out that has
> been posted. It only shows the first word IE:
> United.
>
> Is there a way to ensure that I can get all the words that the value
is
> set to?IE: United States of America, when the form is posted?

Make sure in your <option value="blah blah"> lines that you're putting
the quotes around the words, example, <option value="United States of
America">.

-Dan Joseph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 

--------------------------------------------------------------------
Disclaimer 
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is 
intended for the attention and use only of the addressee. 
Should you have received this e-mail in error, please delete 
and destroy it and any attachments thereto immediately. 
Under no circumstances will the Cape Technikon or the sender 
of this e-mail be liable to any party for any direct, indirect, 
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to 
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to