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 if

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 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 Parser

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 selected I have a dropdown box that is for

RE: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Adrian Ciutureanu
select size=1 name=month option value=0 selectedSelect month option value=1January . . . /select . . . if(!$month) { // please select month } else { // month selected } -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: 5