Hi,
I have a form with a select input named "cours" and I want to send a mail according to what was selected in that input. So I set a hidden destmail field
Problem is: the magic doesn't happen, the destmail field is not updated...
here is my php code:
and here is the html of the select box:
I have a form with a select input named "cours" and I want to send a mail according to what was selected in that input. So I set a hidden destmail field
Problem is: the magic doesn't happen, the destmail field is not updated...
here is my php code:
<?php
if (stripos($cours, 'cinéma') !== false)
{
$destmail = 'cinema@acte4.be';
}
else if (stripos($cours, 'ados') !== false)
{
$destmail = 'ados@acte4.be';
}
else if (stripos($cours, 'théâtre') !== false)
{
$destmail = 'theatre@acte4.be';
}
?>
and here is the html of the select box:
<select size="1" id="cours" class=" validate['required']" title="" type="select" name="cours">
<option value="">(sélectionnez)</option>
<option value="théâtre">Théâtre</option>
<option value="cinéma">Cinéma</option>
<option value="ados">Ados</option>
<option value="stage cinéma juillet">Stage Cinéma Juillet</option>
<option value="stage cinéma août">Stage Cinéma Août</option>
<option value="stage ados juillet">Stage Ados Juillet</option>
<option value="stage ados août">Stage Ados Août</option>
</select>