|
@scrowler: $_POST, $_GET.. are all global variables, they exist even when register_globals are on or off, if register_globals are on, then you have standard variables like $checkboxname, not recommended at all due to security.
@ViciOuS:
Alrighty, well first there is a difference between TRUE and "TRUE", one is a string, one is a boolean. A boolean is a bit variable that is either on or off, or true or false. Using == "TRUE" is like saying if something is equal to TRUE literally, not whether it is true or not.
In forms, place a value on the input, so in your checkbox html tag you should have a value="something", when PHP gets the result, $_POST['checkboxname'] will equal something. This is usually how I do it, but I have not had to deal with checkbox's too very much.
|