Re: spaces in select

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

 



Angelo Zanetti wrote:
Hi all,

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?

Thanks in advance.

Make sure your <option> has a value, ie...

<option value="United States of America" />United States of American

Instead of...

<option value />United States of America

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@xxxxxxxxxxxx

--
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