Can one of you nice PHP people help me with this problem.
I have one PHP script and 3 Functions.
Function 1, Places a form on the screen requesting lots of data.
Data is returned by POST Method.
Function 2, Formats and places the data from the form into the table.
Function 3, Writes data to mySQL database.
The flow works fine, but no data from the form is transfered to the table function1 to function2.
Now, I am sure that this is due to varibles are local within a function.
How do I Globally declear ALL of the FORMS (POST METHOD) variables for use anywhere in the script or scripts(Session) WITHOUT listing them or specifying them.
I think this has something to do with $_POST $SESSION $HTTP_POST_VARS. But have no idea how to make it work.
Many thanks
Ian.