Re: spaces in select

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

« previous php.general (#199181) next »