I have an email form that works great But I am having problems adding a multi check box area to it I added in the HTML no prob but it aint sending the details right in the email I receive it only shows one of the options <form> <input type="checkbox" name="vehicle" value="Bike" /> I have a bike<br /> <input type="checkbox" name="vehicle" value="Car" /> I have a car </form> HTML: I then did a bit of googling and was advisted to put [] in after the name <form> <input type="checkbox" name="vehicle[]" value="Bike" /> I have a bike<br /> <input type="checkbox" name="vehicle[]" value="Car" /> I have a car </form> HTML: I did but now in the email it sends it just gives a result of "Array" In the PHP it is a request tag $vehicle = $_REQUEST['vehicle'] ; PHP: any ideas
by using multi option check box you can face several problms to sending the mail better to search for alternate
yes, try to make <option>option 1 </option> <option>option 2 </option> <option>option 3 </option> and more
Hi there. It's an array so the $_REQUEST is now a multi-dimensional array with it's own keys. The following bit of code should print out all selected options: $vehicle = $_REQUEST['vehicle'] ; foreach($vehicle as $vehicle_key => $vehicle_value) { $vehicle_content .= $vehicle_value . "\r\n"; } PHP: Also, you'll want to make sure the form action is post. Hope that helps!