Is it possible to have a form "Drop down box" that allows multiple
selects?  I know the form field itself exists, but It only seems to
return the last item selected and not all of them.

Note in the code below the line: <select size="1" name="D1" multiple>
[code]
<?PHP
include ("header_template.php");
?>

<form method="POST" action="<?PHP echo $_SERVER['PHP_SELF'] ?>">
  <p>
  <select size="1" name="D1" multiple>
        <option value="ship1">ship1</option>
        <option value="ship2">ship2</option>
        <option value="ship3">ship3</option>
  </select><input type="submit" value="Submit" name="B1"><input
type="reset" value="Reset" name="B2"></p>
</form>

<?PHP
echo "Form info: ". $_POST['D1'];
html_footer();
?>
[code]

All this returns is: "Form info: ship2" 

Thanks,

Jeff

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to