I believe there is a fairly simple solution to this question - I just seem to be blanking out or lost to what the correct syntax is for the coding:
I have a page containing a submit form that dumps into a ()mail function that sends to my e-mail address. It works fine except for one field which is a dropdown list where I allow the user to CTRL select multiple selections from the list:
...
<select name="app_pos" size="5" multiple>
<option>Choice 1</option>
<option>Choice 2</option>
<option>Choice 3</option>
<option>Choice 4</option>
<option>Choice 5</option>
<option>Choice 6</option>
</select>
...
The problem is that when multiple choices are selected and the form is submitted to the ()mail function and mailed, the result only diplays the last choice selected. Here is a stripped down example of how the variable is used in the php script:
...
<?php
$FHeaders="From: $app_name <$app_email>";
$FMessage="The following information was submitted:\nSelections Chosen: $app_pos";
$FSubject="Selections";
mail("bthompson@jabezco.com", $FSubject, $FMessage, $FHeaders);
?>
...
Where am I going wrong with this code? I have seen some usage of arrays in other examples but can't seem to figure out how to pass them thru the ()mail function. Rather than only seeing the last choice selected, I obviously want to see all the choices. Do I need to call out the field in another way in the ()mail function? Do I need to place some []'s and if so, where? Any help is appreciated.
Brian