How to add date and time to verification page and email

bobcameron 08 Feb, 2010
I need to add the form submitted date and time to a form that will show up in the validation page, as well as in the html email sent after submit. The date and time is not entered by the user, rather pulled from the system. I have no clue how to add this to the 'On Submit'.
GreyHead 08 Feb, 2010
Hi bobcameron,,

Something like this should do it
<?php
$date = date( 'Y m d H:i');
JRequest::setVar('date', $date);
?>
Then add {date} in the templates.

Bob

PS You can find the syntax for the Y m d values in the PHP manual under 'date'
This topic is locked and no more replies can be posted.