Jump to content

[SOLVED] Removing an Element from the POST Array


davidz

Recommended Posts

I have a form that is posting it data to PHP_SELF.  This then gets processed and does it's thing.  My question is that when I hit the submit button, I get all the data from my form but I also get one item from the Submit button itself.  Can I make the submit button not include itself in the POST?

 

Here is an example output of print_r($_POST)

Array
(
    [ACPlatSearch] => -1
    [ACDeedSearch] => -1
    [ACUserInfo] => -1
    [ACPropertySearch] => -1
    [ACStatsTotalSales] => -1
    [savePermissions] => Save
)

 

The last element is the submit button, the other ones are checkboxes.  I don't want that last one.  So is there a simple way to not include it or do I need to loop through the array and remove it manually?  I need the rest of the array intact for further processing with array functions.

 

Thanks!

David

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.