|
-
Dec 14th, 2006, 08:31 PM
#1
Thread Starter
Addicted Member
how to pull all values from a select box
ok i have this
<select name="testCol[]" id="endresult" size=20>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
</select>
now i need to pull all these values after someone hits the submit box, i tried this but it doesnt work
foreach($_POST['testCol'] as $key => $value){
echo $key." ---- ". $value ."<br>";
}
what should i do?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|