Re: spaces in select

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux