RE: [PHP] select prob.

From: Date: Sat, 03 Feb 2001 18:42:55 +0000
Subject: RE: [PHP] select prob.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37974@lists.php.net to get a copy of this message
So, where the logic brings us at this point? <input type=text name=form[name] .. <input type=text name=form[email] .. <select name=form[country]> <option value=0>Select your country <option value=0>------------------- <option value=US>United State <option value=UK>United Kingdom .... in your loop then a "0" won't result as a set array ... try it with if($var or isset($var)) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) maxim@phpbeginner.com www.phpbeginner.com -----Original Message----- From: Netbrain di M.L. [mailto:net-brain@net-brain.net] Sent: Sunday, February 04, 2001 3:34 AM To: PHPBeginner.com Cc: php-general@lists.php.net Subject: RE: [PHP] select prob. x On Sun, 4 Feb 2001, PHPBeginner.com wrote: > then, why don't you instead have it NULL, like: > > <input type=text name=form[name] .. > <input type=text name=form[email] .. > <select name=form[country]> > <option>Select your country > <option>------------------- > <option value=US>United State > <option value=UK>United Kingdom > .... > > > then if it's empty it will be skipped ... I think ... I've never done so ... > > Ciao allo zio e la lista italiana, > > Maxim Maletsky Hmmm, I'm not sure but if not value is set in a select field, the title is passed .. I mean: <option>My Label on the submit action, the val My Label is send to the script ... max ps. ciao anche a te :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#37974) next »