Home › Forums › Back End › Adding date to contact form › Re: Adding date to contact form
August 20, 2012 at 2:43 am
#108137
Member
You’re concatenating your message via your $Body variable, so it is rending in the message…. So, printing out the date isn’t going to work. You’ll need to create a date variable and append it in your message.
ie:
$date = date('Ymd'); // or whatever format you'd like
$Body = "blah...blahn";
$Body .= "The date is: ".$date."n";
//etc, etc...