jaacmmason has asked for the wisdom of the Perl Monks concerning the following question:
If statement - this have been changed many times, and no matter what I do, it is still given me an error. If I keep out the if statement and just display the field it works fine, so it is not an issue with the field names, just my formatting of the code itself. I still classify myself as a newbie to Perl.<tr> <td> Is this a Branch Manager performing a Business Call? </td> <td> <input type="radio" name="businessCall" value="Yes_bus" />Yes + <input type="radio" name="businessCall" value="No_bus" />No * </td> </tr>
Thank you in advance for any assistance you can give me to get what I believe is a very easy if then statement working here.if $businessCall.value = "Yes_bus" { my $subject = "Branch Manager Business Call" } else if $businessCall.value = "No_bus" { my $subject = "Merchant Referral" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: If statement based on Radio Button Values
by stevieb (Canon) on Nov 04, 2015 at 22:14 UTC | |
by jaacmmason (Acolyte) on Nov 04, 2015 at 22:42 UTC | |
by hippo (Archbishop) on Nov 04, 2015 at 23:22 UTC | |
by tangent (Parson) on Nov 04, 2015 at 22:52 UTC | |
|
Re: If statement based on Radio Button Values
by jeffa (Bishop) on Nov 04, 2015 at 22:46 UTC | |
|
Re: If statement based on Radio Button Values
by davido (Cardinal) on Nov 05, 2015 at 02:19 UTC | |
|
Re: If statement based on Radio Button Values
by jaacmmason (Acolyte) on Nov 05, 2015 at 20:19 UTC | |
by poj (Abbot) on Nov 05, 2015 at 20:36 UTC | |
by hippo (Archbishop) on Nov 05, 2015 at 22:22 UTC |