Hi,
I'm new to PHP, so I'm not sure how to use IF statements.
Here is my code. Its a part of an email form:
$EmailBody = "
Name: $name
School: $school
Phone: $ph
Email: $email
if ($program == true) {
** --YES--, We would like to sign up to the Australian School Gymnastics program
Prefered Day:
Preference 1 = $ipref1
Preference 2 = $ipref2
No. Classses = $class
} else if ($program == false) {
** --NO--, We would NOT like to sign up to the Australian School Gymnastics program
}
";
It prints out the IF statements in the email, rather than only printing the result.
Please help. Thanks,
Josh.