ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Getting access to $_POST variables

March 18, 2011 11:23am

Subscribe [1]
  • #1 / Mar 18, 2011 11:23am

    Hello,

    I’m aware of the fact that one is supposed to use the input class that EE provides to get POST-ed vars, so I should use stuff like:

    $b_id = $this->EE->input->post(‘b_id1’);

    There’s just one problem with this approach since I don’t exactly know which names the input variables are going to have. That could range from b_id1 to (for example) b_id11234567890. I could of course just try and access a variable (since it will return FALSE if it doesn’t exist) just by making a for-loop but that would suck immensely and create a whole lot of work that is totally unnecessary. So I would like to be able to just cycle through the $_POST array and check the values myself. Will this require a hack of EE or is there something else I can do or another solution I can use?

    Thanks!

    Michiel.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases