Posted by Mark Winter on 06/05/07 21:47
I have a multi select pick list in an html
<FORM ACTION="/progs/read.php" METHOD="POST" target="_blank">^M
<label for="CATEGORIES">Select one or more categories</label>^M
<SELECT MULTIPLE name="CATEGORIES" size="10" id="CATEGORIES"
class="select">
<option value="41">Auto Manufacturers</option>
<option value="27">Biodiesel</option>
<option value="38">Component Suppliers</option>
<option value="39">Conversion Companies</option>
<option value="40">Dealers</option>
<option value="28">Electricity</option>
</select>
in read.php i try to read the value by:
$categories=htmlspecialchars($_POST['CATEGORIES']);
then try to print out the value and all I get is the last value.
I tried to put in an array like:
$categories=array($_POST['CATEGORIES']);
and still got the same result.
What am I doing wrong?
Thank you
Navigation:
[Reply to this message]
|