I need to set field data in Submit-before and the data should be included in the mail sent. The field data should not be visible in the email form. I have tried the following, but the fields in the email are empty.
This should be very basic, but i just cant make it work. Other postings indicate that this is the method.
This is what i have tried:
Form html (part of):
Submit-before code (part of):
Email template (part of):
The email is set to plain text in the email settings.
The email contains the text "Date and time (CET): " But the field is empty!
Michael
This should be very basic, but i just cant make it work. Other postings indicate that this is the method.
This is what i have tried:
Form html (part of):
<input type="hidden" name="dateandtime" value="" />
Submit-before code (part of):
<?php
JRequest::setVar('dateandtime',date('r'));
?>
Email template (part of):
Date and time (CET): {dateandtime}
The email is set to plain text in the email settings.
The email contains the text "Date and time (CET): " But the field is empty!
Michael