Jump to content

PHP timer


fellixombc

Recommended Posts

Alright, So I need a timer so that they can only send me one email every hour.

 

I have no idea how to add this, heres my script:

 

<?php
// Contact subject
$striptags
$subject ="$subject";
// Details
$striptags
$message="$detail";

// Mail of sender
$striptags
$mail_from="$customer_mail";
// From
$striptags
$header="from: $name <$mail_from>";

// Enter your email address
$to ='[email protected]';

$send_contact=mail($to,$subject,$message,$header);

// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
die "ERROR";
}
?>

 

Link to comment
https://forums.phpfreaks.com/topic/144418-php-timer/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.