Hi Everyone,
I'm kind of having the same problem, the only thing different is
that it's in the form of an array. can anyone help?
HTML page:
<HTML>
<HEAD></HEAD>
<BODY>
<FORM METHOD = GET ACTION = "listbox.php">
what price of car are you looking to buy ?
<BR>
<BR>
<SELECT NAME = "Price">
<OPTION> Under $5,000</OPTION>
<OPTION>$5,000-$10,000</OPTION>
<OPTION>$10,000-$25,000</OPTION>
<OPTION>Over $25,000</OPTION>
</SELECT>
<BR>
<BR>
What size of engine would you consider?
<BR>
<BR>
<SELECT NAME="Engine[]" MULTIPLE>
<OPTION>1.0L</OPTION>
<OPTION>2.0L</OPTION>
</SELECT>
<BR>
<BR>
<INPUT TYPE = SUBMIT>
</FORM>
</BODY>
</HTML>
Php page.
<HTML>
<HEAD></HEAD>
<BODY>
<?php
echo " Price Range " . $GET['Price'] ."<BR>";
echo " Enginge Size(s) " . $GET['Engine[0]'];
echo $_GET['Engine[1]'];
?>
</BODY>
</HTML>
The $_GET['Price'] works great, but the Array will not display
, but it does show as querry string.
Thanks in advance