RE: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Adrian Ciutureanu
Select month January . . . . . . if(!$month) { // please select month } else { // month selected } > -Original Message- > From: Richard Kurth [mailto:[EMAIL PROTECTED]] > Sent: 5 iulie 2001 12:36 > To: php > Subject: [PHP] v

Re: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Dave Mariner
ermshouldnt that be if($month == "00" ) { ? Dave - Original Message - From: "Richard Kurth" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Thursday, July 05, 2001 12:35 PM Subject: [PHP] verifying that a dropdown was sele

Re: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Alexander Deruwe
On Thu, Jul 05, 2001 at 12:05:28PM +0200, Tom Gitzinger wrote: > Hello Richard, > > I'm not quite sure but I think the problem is the following: > - If no month has been specified, the variable $month is not defined. > - If you then mention $month in >if ($month == "") > the Pars

Re: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Tom Gitzinger
Hello Richard, I'm not quite sure but I think the problem is the following: - If no month has been specified, the variable $month is not defined. - If you then mention $month in if ($month == "") the Parser creates the variable. Its value is unpredictable, but it is most unlikely

RE: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Don Read
On 05-Jul-01 Richard Kurth wrote: > > I have a dropdown box that is for selecting the month How can I be > verified that the customer has selected one of the months. I am using > verification like this but it does not do what I want for a dropdown > box it works fine for regular fields > >

[PHP] verifying that a dropdown was selected

2001-07-05 Thread Richard Kurth
I have a dropdown box that is for selecting the month How can I be verified that the customer has selected one of the months. I am using verification like this but it does not do what I want for a dropdown box it works fine for regular fields if ($month == "") { $mo