I have a form where I want the user to be able to one or all from a select form. I am using PHP to handle the form information. When I echo back the variable I am only getting the last value selected, i.e. when 1, 2, & 3 are selected I only get 3 posted. Below is a sample of the form I built to test.
<HTML>
<head>
<title>Brian's Playpen</title>
</head>
<body>
<form method='post' action=''>
<select name='brian' size =3 multiple>
<option value=1>one</option>
<option value=2>two</option>
<option value=3>three</option>
</select>
<input type='submit' name='submit' value='send data'></form>
<?
echo $brian;
?>
</body>
</html>
Is there something that has to be set in an ini file some where to allow multiple items to be sent? All the research I have done says that the field should be posted as a CSV field. Any suggestions on what is going wrong?
<HTML>
<head>
<title>Brian's Playpen</title>
</head>
<body>
<form method='post' action=''>
<select name='brian' size =3 multiple>
<option value=1>one</option>
<option value=2>two</option>
<option value=3>three</option>
</select>
<input type='submit' name='submit' value='send data'></form>
<?
echo $brian;
?>
</body>
</html>
Is there something that has to be set in an ini file some where to allow multiple items to be sent? All the research I have done says that the field should be posted as a CSV field. Any suggestions on what is going wrong?