Possible Duplicate:
PHP: How to remove specific element from an array?
Here in my $_POST, I am quite confused on how to trim or drop the key 'submit'. I'm quite confused with this array manipulation. Thanks.
Array
(
[Physical_Education] => 43
[Statistics] => 34
[Biology] => 43
[Math] => 34
[quarter] => 1
[submit] => Submit Grades
)
$_POSTarray itself isn't really meant to be manipulated. Any information you get from it should be taken out of the array and put into variables or another array; it's better coding practice.delete) - ah but yes,$_POSTis a global thing, don't mess with it too much.