if I cant figure this out.
I'm trying to set up a php formmail which, to all intents and purposes, is working ok.
My issue is that it only returns one field "Event" in the body of the email.
The From, to, subject fields all work dandy and appear correctly in the message header as you'd expect but I'd like to capture all of the information which the user submits and have it presented in a logical fashion in the body of the email which is sent to me once the script runs.
If anyone can help with this I'd very much appreciate it.
The script is as follows:
<?php
$to = "XXXXXX@ntlworld.com";
$subject = "Event Registration";
$name = $REQUEST['Name'] ;
$event = $REQUEST['Event'] ;
$email = $REQUEST['Email'] ;
$telephone = $REQUEST['Telephone'] ;
$occupation = $REQUEST['Occupation'] ;
$employer = $REQUEST['Employer'] ;
$comments = $_REQUEST['Comments'] ;
$header = "From: $email";
$sent = mail($to, $subject, $event, $header) ;
if($sent)
{print "Your reservation has been sent. Thank you"; }
else
{print "We encountered an error sending your mail"; }
?>
As ever, many thanks in advance of any assistance / advice offered.
The first pint is on me!
Regards
Paul