RE: Help Re-writing my if statement

2003-08-01 Thread Chris Mortimore
Gidday All, I would like to write this if statement better by combining the two elsif conditions. if( !&check_url ){ print 'The Referrer '.$ENV{'HTTP_REFERER'}.' is not allowed to access this cgi-script!'; } elsif( !&check_email( $data{'toAddress'} ) ){ print 'An email cannot be sent ' . $d

Help Re-writing my if statement

2003-07-31 Thread Johnstone, Colin
Gidday All, I would like to write this if statement better by combining the two elsif conditions. if( !&check_url ){ print 'The Referrer '.$ENV{'HTTP_REFERER'}.' is not allowed to access this cgi-script!'; } elsif( !&check_email( $data{'toAddress'} ) ){ print 'An email cannot be sent ' . $dat