I have the general setup:
MyForm.htm // the HTML form
MyForm.php // the PHP result script
Everything works fine. I do however want to handle the case where someone goes to MySite.com/MyForm.php without getting there from the MyForm.htm page.
I tried a hidden field but I get an undefined index error if they don't go from the form page.
What's the best way to handle this situation ? I'm looking for something clean and not too complicated.