the problem is here:
PHP Code:
if ($redirect) {     
header("Location: $redirect"); //missing.php      
exit;  } else {     
echo 
"Thank you, you now have an extended period to: <span style=\"color:#CC0000; font-weight:bold;\">          
$dateNow = new DateTime();         
$dateAhead = $dateNow->add(DateInterval::createFromDateString('1 months'));         
print 
$dateAhead->format('d F, Y, H:i:s');</span>\n";     
exit;  } 
in what other method can get:
PHP Code:
$dateNow = new DateTime();         
$dateAhead $dateNow->add(DateInterval::createFromDateString('1 months'));         
print 
$dateAhead->format('d F, Y, H:i:s'); 
To exit the result:* Thank you, you now have an extended period to: .... show me the result of print $dateAhead->format('d F, Y, H:i:s');?


when i try:
PHP Code:
if ($redirect) { header("Location: $redirect"); 
exit;  
} else {     
$dateNow = new DateTime(); 
$dateAhead $dateNow->add(DateInterval::createFromDateString('1 months')); 
$formatted $dateAhead->format('d F, Y, H:i:s'); 
print 
"Thank you, you now have an extended period to: <span style=\"color:#CC0000; font-weight:bold;\">$formatted</span>\n";      
exit;  } 
It shows:
Fatal error: Call to undefined method DateTime::add() in