Is there a way to reference a php script from within an existing html page, in a similar manner to how external javascripts are referenced?
For example, I'd like to utilize a php script that will detect a person's ip and redirect them to another page. I want to put this on my mail form html page because one particular person is using the mailform to send me spam. I found a php script that says it will do that, and in the instruction it says to include on the page to be protected this line of code:
<?php include('redirect.php'); ?>
Am I correct in saying that I cannot just drop that onto an html page? If I can't, I'm wondering if anyone has seen a method that will work -- for example, using js "document.write" or some other technique??
Any advice is appreciated...
For example, I'd like to utilize a php script that will detect a person's ip and redirect them to another page. I want to put this on my mail form html page because one particular person is using the mailform to send me spam. I found a php script that says it will do that, and in the instruction it says to include on the page to be protected this line of code:
<?php include('redirect.php'); ?>
Am I correct in saying that I cannot just drop that onto an html page? If I can't, I'm wondering if anyone has seen a method that will work -- for example, using js "document.write" or some other technique??
Any advice is appreciated...