i have a problem with send value multi checkbox by mail:
<input type="checkbox" name="wiztype[]" value="value1">
<input type="checkbox" name="wiztype[]" value="value2">
<input type="checkbox" name="wiztype[]" value="value3">
<input type="checkbox" name="wiztype[]" value="value4">
<input type="checkbox" name="wiztype[]" value="value5">
I'm trying to use the plugin for validating form, i have there:
var wiztype = $("input[name='wiztype[]']:checked").serializeArray();
In the mail-proces.php i have:
$wiztype = $_POST["wiztype"];
In the mail I have:
[object Object],[object Object] (x number of selected boxes)
I tried to do foreach
if(!empty($_POST['wiztype'])) {
foreach($_POST['wiztype'] as $wiztypelist) {
$wiztypelist;
}
}
What can i do with this? Please help :)
Aucun commentaire:
Enregistrer un commentaire