Can someone please tell me how to access elements from a multiple
selection list? From what ive read on other posts, this is correct. I
keep getting an "Undefined variable" error though...
Form page*********** *************** *************** *************** ****
<form action="/process.php" method="get" name="formOne" id="formOne">
<select name="owner[]" size="6" multiple id="owner[]">
<option value="one">one </option>
<option value="two">two </option>
<option value="three">t hree</option>
</select>
<input type="submit" name="Submit" value="Submit">
</form>
Process page*********** *************** *************** *************** **
for($i=0; $i < count($owner); $i++) {
echo $owner[$i];
}
Thanks! -Nick
selection list? From what ive read on other posts, this is correct. I
keep getting an "Undefined variable" error though...
Form page*********** *************** *************** *************** ****
<form action="/process.php" method="get" name="formOne" id="formOne">
<select name="owner[]" size="6" multiple id="owner[]">
<option value="one">one </option>
<option value="two">two </option>
<option value="three">t hree</option>
</select>
<input type="submit" name="Submit" value="Submit">
</form>
Process page*********** *************** *************** *************** **
for($i=0; $i < count($owner); $i++) {
echo $owner[$i];
}
Thanks! -Nick
Comment