okay here’s my error:
Warning: mail() expects at most 5 parameters, 9 given in [url]http://***.iesend_contact.php[/url] on line 31
It works perfectly with 5 or less fields,
but it won’t accept anymore.
This is the first php script I’ve ever coded so I’m clueless on this error.
Little help?
PHP Code:
[code=php]
<?php
// Contact subject
$subject =”$subject”;
// Details
$detail=”$detail”;
// Company
$company=”$company”;
// Address
$address=”$address”;
// Phone
$phone=”$phone”;
// Fax
$fax=”$fax”;
// Website
$website=”$website”;
// Mail of sender
$mail_from=”$customer_mail”;
// From
$header=”from: $name <$mail_from>”;
// Enter your email address
$to =’***@***.ie’;
$send_contact=mail($to,$subject,$detail,$company,$address,$phone,$fax,$website,$header);
// Check, if message sent to your email
// display message “We’ve recived your information”
if($send_contact){
echo “We’ve recived your contact information”;
}
else {
echo “Sorry, and error has occured. Please try again.”;
}
?>