One form, three different reply emails

allyro 21 Nov, 2007
Hi there

I have three checkboxes on my form and each checkbox requires a different autoresponse. Can I do this within the Chronoform form manager? And if so, please tell me how.

Thanks
GreyHead 21 Nov, 2007
Hi allyro,

Yes you can do this. Probably the simplest way it to write an email template like this:
<?php
switch ( $_POST['checkbox'] ) {
case 'value_1':
  ?>
  some html code . . .
  <?php
  break

case 'value_2':
  ?>
  some html code . . .
  <?php
  break

case 'value_3':
default:
  ?>
  some html code . . .
  <?php
  break
}
?>
by using a switch statement(s) you can simply change all or parts of your response email based on values from the form.

Bob<br><br>Post edited by: GreyHead, at: 2007/11/21 11:20
Mizpah 21 Nov, 2007
Thanks Allyro,

You have given me another brainwave :laugh:

Am now going to try to set up an email template that replies with the image of the archetype slected in the html email !

Miz
This topic is locked and no more replies can be posted.