Hi Pam, On Wed, Aug 14, 2002 at 08:37:46AM -0700, Pam Derks ([EMAIL PROTECTED]) said something similar to: [snip] > elsif ($av_equip eq "slide" || "tvvcr" || "lcd" || "boombox" || "overhead" || >"opaque" || "flipchart" || "projection") {
This is basically like saying: elsif ($foo eq "bar" || 1 || 1 || 1 || 1) { or elsif (1) { You would want to change this so each part is '$av_eqip eq "whatever"', or '$av_equip =~ /^(foo|bar|baz|etc)$/' Also, you do not show how you are defining the variables you are checking. You are using param(), correct? Do a 'print $q->dump()', and make sure you are getting the parameters correct. > snippet of cgi code is: > $tempfile = "/tmp/avtemp$$.txt"; > > $send_to = $q -> param('send_to'); > > # E-mail answers: > > $date = localtime(); > if (open(MAIL, ">$tempfile")) { > print MAIL <<EOF; > To: $send_to > From: $send_to > Subject: AV Request Form Please look at one of the Mail::* modules, or MIME::Lite for sending email. Cheers, Kevin -- [Writing CGI Applications with Perl - http://perlcgi-book.com] Nuclear explosions under the Nevada desert? What the f*ck are we testing for? We already know the sh*t blows up. -- Frank Zappa -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]