[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Perl/HTML help



>Anyone any idea how to do this in Perl ?

>I have a name field, e-mail field, 2 radio buttons in my webpage (called A
>and B)  and 3 checkboxes (called X, Y and Z)
>How can I do the following in perlscript?
>
>if X is checked, check that A or B is also checked
>
>If YES
>send message to anyone@anyone.com : subscribe I <Name> with <email
>address> in From: field
>
>If NO
>Return message ãSorry, you must check the box to confirm that you
>agree to the constitution before you can subscribe to any email
>discussion listsä
>
>if Y is checked , check that A or B is also checked
>
>If YES
>send message to anyone@anyone.com : subscribe ii <Name> with <email
>address> in From: field
>
>If NO
>Return message ãSorry, you must check the box to confirm that you
>agree to the constitution before you can subscribe to any email
>discussion listsä
>
>
>if 3 is checked, check that B is also checked
>
>If YES
>send message to anyone@anyone.com: subscribe iii <Name> with <email
>address> in From: field
>
>If NO
>Return message, ãSorry, you must check the box to confirm that you
>have read this before you can subscribe to email discussion listsä
>
>Any ideas would be good.
>
>regards
>
>James

Well, you basically have the logic all worked out, so you could write it
out the way you've written it above using if / elsif statements.

One thing though... it seems that you would want x,y and z to be radio buttons.

- Daniel

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org