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....
and in code I have placed the following...
$from = "firstname.lastname@example.org";
$sender = "ICEP support";
$subject = 'Enrol starter details';
$message = ?????;
JUtility::sendMail($from, $sender, "email@example.com", $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.