I have a contact form in my website and the name of page is (contactus.php
) that after filling and hitting goes to PHP file (contact.php
). Both are in same server mean under same domain. Now someone is filling my contact form outside from my (contactus.php
) page from that I am receiving so many spam. Now after searching, I got him and also got his code. He is using something below code.
<form name="myform" id="myform" method="post" action="http://www.mydomain.com/contact.php">
<input type="text" ...
<input type="email" ...
<textarea type="text" ...
<input type="submit" ...
</form>
Now is there any way to make my (contact.php
) limited to only get input data from my domain mean page like (contactus.php
)?