Hi,
I use the following to test whether a form has been submitted: -
if ($_SERVER['REQUEST_METHOD']=='POST')
I tend only to use this when I'm form validating as it allows me to keep calling the same form until it's filled in correctly.
Problem is if this script is used in a program that is called by another program (with a form submit) then the test is set to true when the new program is called.
So everytime the second program with the above code in it gets called, the program spits out its 'form is not filled in properly message'.
Is there a way around this that anyone can think of?
Thanks
Chris