From verification help please

Soldato
Joined
27 Oct 2003
Posts
4,996
Location
East Mids.
I need to insert some kind of form verification onto a page on my companies website to stop the 500 odd emails we get every so often, but I have no idea how to do it and after a quick look on the web I got a headache :(
Can some kind person show a moron how to do this please.

Thanks
Dave
:)
 
In php, something similar to the following?

Code:
//* Use a Session *//



<?php

session_start();

if( $_SESSION['lastMailed'] + 600 < time() ) {
    echo 'Wait 10 minutes before mailing again!';
    die;
}

// Mail here

$_SESSION['lastMailed'] = time();  

?>

Whether this will actually work for what you want, I don't know. Have you tried blocking the ip that you are getting the 500 emails from?

Maybe use a form of image verification (would that be practical?)

Google and it will give you a tutorial to do it.
 
Last edited:
Back
Top Bottom