|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 2
|
|
| Author |
|
|
Stranger ![]() USA Joined: Aug 27, 2006 Post Count: 1 Status: Offline |
Hello, Did some research, couldn't find what I was looking for in the PHP docs... Finally found a page that mentioned you have to use a form variable named with brackets at the end []. Like this: <input type="checkbox" name="myvar[]" value="123"> 123 <input type="checkbox" name="myvar[]" value="abc"> abc <input type="checkbox" name="myvar[]" value="456"> 456 then you can get the value with: $inArr = array(); if (isset($_POST["myvar"])){ $inArr = $_POST["myvar"]; } That's it. Thought I'd share... hopefully someone can make use of this tip. Cheers, -J ---------------------------------------- Small Business Resources ~ News Feeds |
||
|
|
Stranger Joined: Oct 15, 2007 Post Count: 1 Status: Offline |
Thank you, jman. I googled this topic, your post was first hit, and your very simple solution is precisely what I need!! |
||
|
|
|
|
|
Current timezone is GMT Mar 11, 2010 6:52:35 PM |