Yes, it seems a good solution :)
thanks again
max
-------------------
Please Help Puppies
-------------------
x
On Sun, 4 Feb 2001, PHPBeginner.com wrote:
> 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)
> [EMAIL PROTECTED]
> www.phpbeginner.com
>
>
>
>
> -----Original Message-----
> From: Netbrain di M.L. [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 04, 2001 3:34 AM
> To: PHPBeginner.com
> Cc: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]