I'm using a form with a few parameters on it. The form action directs to a script, which does a bit of session manipulation (mainly to identify what stage it's at.... irrelevant, never mind) but the problem I'm having is that I'm trying to get $_POST variables from page A, through page B, to page C.

Now, normally this would be easy..... providing the form elements passing the values were STATIC. but they are in fact populated out of a database, which means the name of the form elements will never be the same, and the script (page 😎 is in fact completely blind to what they are.

Now, when passing from page A to B, it works fine, because an SQL query (also stored in database) DOES know which $_POST variables to expect.

The system works great. I'm re-structuring tho, into a linear design for use on an o2 XDA, which hates the current design.

Is there any way to list all variables stored in $POST, or just redirect the entire $POST array to another page?

    Not exactly sure, but could you register it as a session and just carry it around there.

      yeah that works.... little bit messy tho....

      i use array_keys to make an array listing the keys in the ORIGINAL array, then run a loop (using size of variable created wiht array_keys), extract the key name from the $POST variable and create a corresponding $SESSION key, then populate THAT with the original value from $_POST.

      on the target page, i then get the values out of $_SESSION using extract(). which extracts all my session variables unfortunately, but I cant really see any other way to do it, seeing as both scripts must be completely blind as to the names of the keys, and the number of keys. BUT IT WORKS!! 😃 🆒

        Write a Reply...