Ok, dunno where u got this "PHP-approved method" thing from, it's complete rubbish.
PHP parses checkboxes through as a one dimensional array. Which mean u MUST alter the HTML, but only slightly. Rather than having the checkboxes called "choices" it must now be "choices[]", this ensures it's parsed as an array.
In the php itself, u can post the array like this:
PHP Code:
foreach($chocies as $value) {
print $value;
print "<BR>";
}
As for your question on "if u don't give a darn about what method is used to submit", if ur server has autoglobals on, then it does not matter, u can simply use the name of the HTML form element as your variable in PHP.
If globals is off however, it's a different story. You're going to have to do something like this to get the value of "choices"
PHP Code:
$Request_Method = $_SERVER['REQUEST_METHOD'];
$choices = ${_.$Request_Method}['chocies']
or this may work too:
PHP Code:
$choices = ${_.$_SERVER['REQUEST_METHOD']}['a']
but i dont think it'll work
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill
Please visit my sites: Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
|