and/or matching question

E

Eddie

Hi,

On a web form, I have two fields "US_State" and "Other_State".

In my perl script I have....

&no_State unless $FORM{'US_State'};

How do I write it so it says

&no_State unless $FORM{'US_State'} ###AND/OR### $FORM{'Other_State'} ;

Thanks!
 
T

Tad McClellan

Eddie said:
On a web form, I have two fields "US_State" and "Other_State".


You should use CGI.pm for form processing.

&no_State unless $FORM{'US_State'};
^
^ lose the ampersand

How do I write it so it says

&no_State unless $FORM{'US_State'} ###AND/OR### $FORM{'Other_State'} ;


no_State() unless param('US_State') or param('Other_State');
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,129
Messages
2,570,770
Members
47,329
Latest member
FidelRauch

Latest Threads

Top