I am trying to get multiple values from the menu “hearabout” to post into a php page. I have searched extensively without any luck. Any help will be appreciated.
<td>
<label>Where did you hear about us?(hold Ctrl button to select all that apply)</label></br>
<select name="hearabout[]" multiple="multiple">
<option value="internet">Internet</option>
<option value="booth">Fair Booth</option>
<option value="news">Newspaper/Advertising</option>
<option value="word">Word of Mouth</option>
<option value="other">Other</option>
</select>
</td>
[php]<?php
$hearabout = check_input($_POST[‘hearabout’]);
?>
<?php function check_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } ?>[/php]