Re: spaces in select

From: Date: Mon, 11 Oct 2004 14:43:56 +0000
Subject: Re: spaces in select
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-199174@lists.php.net to get a copy of this message
> 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

« previous php.general (#199174) next »