> This is the piece of code that is giving me the problem I 
> believe.  It is the one that is supposed to check to make 
> sure that a user enters a valid email address.  When I 
> comment it out, it works in both IE and NN.
> 
> if ($FORM{'email'} !~ /[\w\-]+\@[\w\-]+\.[\w\-]+/) {  
> dienice("Please enter a valid email address");  }
> 
> Thanks for your patience with my beginner faux pas.  I will 
> be a better member of this list from here on out.

Is there a reason the CGI module is not being used to get the form
values?

Ok, so that means that the two browsers are reporting the form values
differenly. As a first step, I would suggest printing out all of your
form values once you have them from the browser. Something like:

 ... Your code here ...
 $tm = time;
 $now = localtime($tm);

 print "\$FORM{$_} == [$FORM{$_}]<br>\n" for keys %FORM;
 # for each name/value pair parsed by the program,
 # print the name and the value
 # so for $FORM{email}, the following might be printed:
 # $FORM{email} == [[EMAIL PROTECTED]]<br>\n
 # and you hopefully be able to see from that what is
 # different between the browsers

 if($FORM{email} !~ /[\w\-]+\@[\w\-]+\.[\w\-]+/) {
   dienice("Please enter a valid email address");
 }
 ... Your code continues ...

So then at the very least, you have something to work with when the page
dies (nicely).

 -dave



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to