I'm making an application form where one of the questions is "approve application?" and there is a radio box where one sets the answer to "yes" and the other "no". For some reason I can't apply the logic to the confirmation email.
Here's the code for the question in the form:
And here's part of the php code:
It's probably something stupid I've also tried it with $_post['agree'].
The code to change the text in the email reads:
and it comes up with "Application 1", how can I stop it doing this?
Thanks a lot!
Dan
Here's the code for the question in the form:
Code:
<li class="appform">Approve application in accordence with the above details? <br />
Yes
<input name="agree" type="radio" value="yes" />
No
<input name="agree" type="radio" value="no" />
</li>
And here's part of the php code:
Code:
if ($agree = yes) { $approve = "approved" && $messageend = 'Please note your diary but await final confirmation.';}
elseif ($agree = no) { $approve = "rejected" && $messageend = 'Please contact your manager for details.';};
The code to change the text in the email reads:
Code:
$subjectapp = "Application " . $approve;
Thanks a lot!
Dan