We have an online register and pay form that unfortunately has alot of steps. I am working to make it simpler but in the first instance I want to make sure to capture and email details on the first step to an internal email address so if they drop out before finishing all steps we can at least make contact with them.
here is the page we are using....
https://www.icepe.ie/index.php?option=com_enrolcourses&view=enrolcourses&courseid=22&Itemid=18&countrytabs=0
and in code I have placed the following...
<?php
$from = "icep.europe@gmail.com";
$sender = "ICEP support";
$subject = 'Enrol starter details';
$message = ?????;
JUtility::sendMail($from, $sender, "support@icepe.eu", $subject, $message,1);
?>
but I do not know how to refer to elements captured on the first step of the form e.g.email is referred as
<td class="labl">Email:<font color='red'>*</font></td>
<td><input type="text" name='email' value='' id='email' /></td>
but $email if assigned to $message does not output the value of the email selection\input in the email that gets issued.
Many thanks for any assistance.
ASKER
Also if I want to assigne teh contens fo the variables to $message for teh email what would the format be
$message = $get(email); // perhaps
Thanks