ghurty Posted July 7, 2010 Share Posted July 7, 2010 How would I code it that if a page is being loaded from a particular page (for example a contactsubmit php file) It will display a line like "Thank You". But if someone goes directly to that page it wont. Thanks Quote Link to comment Share on other sites More sharing options...
joePHP Posted July 7, 2010 Share Posted July 7, 2010 Hi, You could use $_SERVER['HTTP_REFERER'] so for example if someone was on the about page and clicked the contact page you would get this: http://www.example.com/about.php I hope that helps, Joe Quote Link to comment Share on other sites More sharing options...
V Posted July 9, 2010 Share Posted July 9, 2010 JoePHP, I think he/she is refering to a contact form. I use this if($_POST) { .....your code... } else { echo "Access Denied!"; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.