I am using a form where multiple cities can be selected with the following code:
EXAMPLE
<select name='local[]' multiple>
<option value="ATLANTA">ATLANTA</option>
<option value="CONYERS">CONYERS</option>
<option value="CHICO">CHICO</option>
</select>
I am able to display the selection on SUBMIT with the following code:
<?php
$i=0;
while($i<count ($local)) {
print $local[$i];
print ", ";
$i=$i+1;
}
?>
How can I get the multiple selected cities to display in an email? The form emails fine with all the other variables ie name, phone numbers, etc. I just dont know what variable to use to display the selected city information in the email.
Please help.
EXAMPLE
<select name='local[]' multiple>
<option value="ATLANTA">ATLANTA</option>
<option value="CONYERS">CONYERS</option>
<option value="CHICO">CHICO</option>
</select>
I am able to display the selection on SUBMIT with the following code:
<?php
$i=0;
while($i<count ($local)) {
print $local[$i];
print ", ";
$i=$i+1;
}
?>
How can I get the multiple selected cities to display in an email? The form emails fine with all the other variables ie name, phone numbers, etc. I just dont know what variable to use to display the selected city information in the email.
Please help.