Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Mechanic
Posted
I have created a form & sendmail.php which work (sort of).
I receive the email, but only 2 fields appear in the email.
Here is my script.
<?php
$ForwardTo="murray@bizcomservices.com.au";
$name=$_REQUEST["name"];
$Company=$_REQUEST["Company"];
$email=$_REQUEST["email"];
$comments=$_REQUEST["comments"];
mail($ForwardTo,$name,$Company,$email,$comments);
header ("Location :ThankYou.html");
?>

Only the Name & Company are in the email.
Can anyone suggest a solution ?

Thanks
 
Posts: 2 | Registered: June 15, 2009Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Geezer' Mechanic
Picture of larryd
Posted Hide Post
 
Posts: 5112 | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Posted Hide Post
Larryd,
Thanks.
I have pored over this post or ges and shuffled things around in my script but the end result is the same.
The script functions, the thankyou page appears and I get the email.
BUT the Subject is NAME
The COMPANY is inthe email body
But no email address or Comments come through.

Don't know ehat else to try..
{sigh}
 
Posts: 2 | Registered: June 15, 2009Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Aussie' Mechanic
Picture of postyr
Posted Hide Post
Had a quick look at your code, and all seems to be okay.

The only thing I can suggest is checking your capitalizing. You may find that “Company” is not the same as “company” or whatever.
 
Posts: 1156 | Location: Australia | Registered: April 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Power' Mechanic
Picture of Bruceee
Posted Hide Post
Following Larry's example in the other post, try this:
mail($ForwardTo, "Subject Line", $name, "From: $email");

As you also have Company and Comments to add, you are running out of space in the mail function parameters. To add those fields and any others, I suggest the joining together (concatenation) method of the tutorials described here. Copy the way the example fills out the $details field.
 
Posts: 9234 | Location: Wellington, New Zealand | Registered: December 11, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.