Hi,
I have created a form and on submission I have used php to generate a random number which will be used as a booking reference.
The php code resides in the "On Submit code - before sending email:" section and reads as follows:
<?php
$booking = mt_rand() . "\n";
echo $booking;
?>
On submitting the form my random number is successfully generated and appears within a new content window.
However how do I echo the random number or $booking variable into my email template? or alternatively into the email subject?
I have tried
{$booking} however this doesn't work.
I appreciate any help.
Thanks
I have created a form and on submission I have used php to generate a random number which will be used as a booking reference.
The php code resides in the "On Submit code - before sending email:" section and reads as follows:
<?php
$booking = mt_rand() . "\n";
echo $booking;
?>
On submitting the form my random number is successfully generated and appears within a new content window.
However how do I echo the random number or $booking variable into my email template? or alternatively into the email subject?
I have tried
{$booking} however this doesn't work.
I appreciate any help.
Thanks