I am trying to mail multiple fields from a contact form and it is not working. I have been trying to create a $message variable that contains 3 fields so i can mail them together.
this is what i have;
<?php
$email = $_POST['email'] ;
$message = ".$_POST['name']."".$_POST['company']."".$_POST['text'].";
mail( "tim.bobker@yahoo.co.uk", "From your trusting clients",
$message, "From: $email");
echo "your message has been sent<br><a href='index.html'>Home</a>";
?>
can anyone help me?