Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Adding date to contact form Re: Adding date to contact form

#108137
irish1381
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...