07032007 0700 GMT-6 DST
There is a line break after ="Email: $email\n"
Try removing that line break.
wade
Joshua wrote:
> Hello,
>
> I am using the following script to send the results of a html form to
> email:
>
> <?
>
> # RegisterGlobals OFF
>
> $name = $_POST['NAME'];
> $email = $_POST['EMAIL'];
> $event = $_POST['EVENT'];
> $guests = $_POST['GUESTS'];
> $submit = $_POST['SUBMIT'];
>
> # Email Body
>
> $body_form_email = "Email: $email\n"
>
> . "Name: $name\n"
> . "Email: $email\n"
> . "Event: $event\n"
> . "Guests: $guests\n"
> . "Submit: $submit\n"
> . "\n"
> . "";
>
> # Send the email to the form owner
>
> mail("[EMAIL PROTECTED]", "IMPORTANT GUEST LIST REQUEST",
> $body_form_email, "From: [EMAIL PROTECTED]");
> # Redirect user to FAIL page
>
> header("Location: http://www.adamscenx.com/scenx/confirmation.htm");
> exit;
> ?>
>
> I am having a problem. The email is coming through with the from email
> and the subject just fine. However, the body of the email is not coming
> through in the email. The variables are only coming through in the
> header of the email. I have used my webmail, Thunderbird, and Yahoo!
> accounts and only can view the results of the form when I select 'View
> All Headers' - the results are only available in the header which is
> kind of a pain with all the other information there.
>
> I have used this same script in the past with no issues... can any offer
> an explanation and/or possible solution???
>
> Thanks.
>
>