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
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
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
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
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
5 matches
Mail list logo