Jump to content

Timestamp Reminder


JohnDoe1

Recommended Posts

<input type="hidden" name="timestamp_created" value="<?php print mktime(0, 0, 0, 1, 1);/* 1 january */ ?>">

 

$timestamp_created = (int) $_POST['timestamp_created'];
$a = time() - $timestamp_created;
$thirtydays = 2592000; // 30 days in seconds
$alertinhour = $thirtydays + 3600;
if ($a > 2592000 && $a < $alertinhour) {
    //set some flag the mail have been send, so it doesn't get send twice
    mail(..);
}

Link to comment
https://forums.phpfreaks.com/topic/166581-timestamp-reminder/#findComment-878538
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.