Hi all!,
In my HTML form I have a multiple select checkbox as below (along with other controls)
<label for="check1" class="fleft">Villa <strong>Type A</strong></label> <input name="vtype[]" id="check1" value="Type A" type="checkbox" tabindex="8"/><br />
<label for="check2" class="fleft">Villa <strong>Type B</strong></label> <input name="vtype[]" id="check2" value="Type B" type="checkbox" tabindex="9" /><br />
<label for="check3" class="fleft">Villa <strong>Type C</strong></label> <input name="vtype[]" id="check3" value="Type C" type="checkbox" tabindex="10" /><br />
The problem is I cannot get the selected values to the form handler (php file)
The handler goes like this:
<?php
import_request_variables("gP");
$msgc= "Message from \n";
$msgc .= "Name:\t$name\n";
............
$viltype={$_POST[‘vtype’]};
$msgc .= "I am interested in type:\t$viltype\n";
$mheaderc .= "Reply to: $email\n";
mail("xxxxxxxxxx@gmail.com","Send me Additional Information",$msgc,$mheaderc);
...........
?>
What am I doing wrong here? Hope you wizards will definitely have a clue.
Thanks a lot in advance.