Stop Post Data From Different Domain PHP
forms, php, post
Solution
$_SERVER['HTTP_Referrer'] would be nice but it isn't reliable. You could use a hidden form field that MD5's something and then you check it on the other side.
Problem
I'm a beginner in PHP. What I'm trying to do is stop Post Data coming from another webpage. The problem I am having is let's say someone copies my form and pastes it in their website. I want to be able to stop that Post Data from running the script on my email form. How can I do this? Let me know if I'm not being clear enough. My PHP Contact form runs on one page with conditional statements. i.e. if data checks out, submit.