Sorry, I think what I told you before was wrong. You need to add an "id" tag to the form, not to each individual entry. Then, when you post the form, you use $POST["FormName"] to get that information back. So, using your code (modified slightly though):
<form id="MyForm" name="MyForm" method="post" action="accmail2.php">
<label>Please select one of the following options:</label>
<select name="select" size="5" multiple="multiple">
<option value="SINGLE1">SINGLE 1</option>
<option value="SINGLE2">SINGLE 2</option>
<option value="SINGLE3">SINGLE 3</option>
<option value="DOUBLE1">DOUBLE 1</option>
<option value="DOUBLE2">DOUBLE 2</option>
<option value="DOUBLE3">DOUBLE 3</option>
<option value="DOUBLE4">DOUBLE 4</option>
<option value="DOUBLE5">DOUBLE 5</option>
<option value="TRIPLE1">TRIPLE 1</option>
<option value="TRIPLE2">TRIPLE 2</option>
<option value="TRIPLE3">TRIPLE 3</option>
<option value="MULTIPLE1">MULTIPLE 1</option>
<option value="MULTIPLE2">MULTIPLE 2</option>
</select>
If the user selects, for example "Double 5", then setting
$MyFormListVariable = $POST["MyForm"];
should set $MyFormListVariable to "Double5"
You can of course then go on to use value checking:
If $MyFormListVariable == "DOUBLE5" THEN
{ ...
} ELSE {
}
type of thing
Enter your message below
Sign in or Join us (it's free).