I managed to get it working with the following, although I've hit another snag.
echo '<form name="form1" method="post" action="ViewDetails.php">';
echo '<select name="select">';
//make some short variables
while($row = mysql_fetch_array( $result )) {
$ID=$row['ID'];//suppy the correct field names below
$Name=$row['Name'];
echo '<option value="' . $ID . '">' . $Name . '</option>';
}
echo "</select>";
echo '<input type="submit" value="Select" align="right">';
echo "</form>";
The snag is on "ViewDetails.php"
I have
$ID=$HTTP_POST_VARS['ID'];
I used a simple echo for the varible but it showed nothing, which would mean that ID isnt getting passed to ViewDetails.php.