Sorry, I've stumbled upon another problem.
I have my select box like this
<select name="publications" size="10" multiple>
<?
$docnumdo=mysql_query("SELECT * FROM docs");
$docnum=mysql_num_rows($docnumdo);
$counter=0;
while ($docname = mysql_fetch_array($docnumdo)){
$counter++;
echo '<option value="' . $docname["id"] . '">' . $docname["title"] . ' (' . $docname["year"] . ')' . '</option>';
}
?>
</select>
And thats all working great. But what I want is for the options selected to be submitted with the form.
So I tried what I normally do which is to include a
$selectedpubs=$_POST['publications'];
But then when I echo that I don't get anything. Now after googling and trying to make sense of php arrarys I think it might be because I need to get the data from the list box out into an array. But I can't do that! I'm not sure how I'd write an array which would be able to do that. It doesn't seem to be similar to the previous array problem.