Outputting two email addresses using Formit with PHP
&emailTo=`[[!script]]` /* Put this in the formit call and then create a snippet */ /* the "script" snippet */ <?php if($_POST['templateVariableName'] == "SomeName") { $output = '[email protected], [email protected]'; } elseif($_POST['templateVariableName'] == "SomeName2") { $output = '[email protected], [email protected]'; } else { $output = '[email protected], [email protected]'; } return $output; ?>
Get In Touch
Have a question? or perhaps spotted a problem?
Maybe you have something you would like to add. Drop us a line anytime!