My PHP form is not POSTing any of the multiple select options I have in a form. This is my PHP:
if ($_POST['interested_in_testing'] != "")
{
$_POST['interested_in_testing'] = filter_var($_POST['interested_in_testing'], FILTER_SANITIZE_STRING);
$interested_in_testing = $_POST['interested_in_testing'];
}
else
died();
Add to email:
<br/>Interested In Testing: " . $interested_in_testing ;
This is my select:
<label class="custom">Interested In Testing</label>
<select name="interested_in_testing[ ]" multiple="multiple">
<option value="atas">ATAs</option>
<option value="ip_phones">IP Phones</option>
<option value="gateways">Gateways</option>
<option value="ip_pbx">IP PBX</option>
</select>
It doesn't send anything for this field. All my single fields send fine. Any help? Thank you
name="interested_in_testing[]"so!empty($_POST['interested_in_testing'][0]).. ..