troubleshooting Question

Capture form values

Avatar of Needy11
Needy11 asked on
PHPApache Web Server
7 Comments3 Solutions268 ViewsLast Modified:
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 CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 3 Answers and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros