Using a checkbox with callback function
| From: | rav k | Date: | Fri, 08 Dec 2006 15:23:07 +0000 |
| Subject: | Using a checkbox with callback function | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-26031@lists.php.net to get a copy of this message | ||
I have some checkboxes on my form and want to pass the checked ones to my function;
I'm using this:
function testadd($vars) {
$s=$var['skills'];
var_dump($s);
}
But the var_dump is returning NULL, what is the correct format to pass the checkbox array? What I will need to do is if a checkbox is checked save its name to the db as in skill['name']..
www.bitesoftware.com - software for a better lifestyle
_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters