Sorry for all who have helped me. I have to disturb you again. I tried your code, which is absolutely correct, I believe. However, maybe I put it at the wrong place. The output in my e-mail box is still only one answer that is the last one I selected no matter how many I chose. So I have to put code again to ask help.
THANKS, THANKS, THANKS.
The feedback.html code:
<form name="form1" method=post action="sendmail.php">
<p><font face="Verdana" size="2"> 1. How do you think the design of this site(select all applied)?</font><br>
<select multiple size=5 name="design">
<option value="1" name=variable[] >teriable</option>
<option value="2" name=variable[] >poor </option>
<option value="3" name=variable[] > bad navigation </option>
<option value="4" name=variable[] > need more mutimedia files </option>
<option value="5" name=variable[] > good </option>
</select>
The sendmail.php code:
<?php
mail("fei@yahoo.com", "Feedback Form Results", "1. How do you think the design of this site(select all applied):$i=0;
while($output = $variable[$i]){
echo $output;
$i++;
}
");
header("Location: http://www.fly.com/thankyou.html");
?>