Hye, I have a select box with me and whenever I use a submit button only the selected value in the select box is posted. I am making a questionnaire so, I should be able to have all the entered options to be posted and not just the one on top or with the selected index.
<html>
<body>
<form action='' method='post'>
<select name='slt'>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
<input type='submit' name='sub' value='submit' />
<?php print_r($_POST); ?>
</body>
</html>
Upon post only the selected value and value of submit are posted.