Im trying to gather checkbox informtion in a php form. Everythig else is working perfectly, but when selecting 5/10 checkboxes it only gives me the last one checked. When using "services[]" array, it just emails back "services:array" Any ideas would be great.
Thanks. (this is the PHP im using)
$name = $_POST['name'];
$email = $_POST['email'];
$number = $_POST['number'];
$services = $_POST['services'];
$message = $_POST['message'];
$changes = $_POST['changes'];
$found_me = $_POST['found_me'];
(this is the HTML thread)
<label>
<input type="checkbox" name="services[]" value="silver" class="silver">
Silver Pack (Website)
</label>
Aucun commentaire:
Enregistrer un commentaire