I have a form that contains a function. i want this function to be activated only when the user reposts the page to itself. (php_self).
ie. the user access the page and the function is hidden, the user then inputs data, repost the page and the function is activated.
I've tried flagging the function with a variable - $var = 0, then $var = 1 at the end of the page but $var just resets itself to 0 when the page is posted.
Sure this is simple but I just cant get it?
thanks