View Single Post
Old 02-15-2006, 05:45 PM   #1 (permalink)
heidi
 
Newb Techie

Join Date: Jul 2005

Posts: 24

heidi

Default php is a nightmare!

hi-
i'm trying to help my bro-in-law out with his website. everything has been okay until he asked for mail forms. ahhhh! "mailto" doesn't work anymore:mad:

so i need to learn php, right? his server can handle this... it has to be something i'm doing. i got the code from www.php.net & tweaked it to fit his site, but get this error when i click submit:

Warning: mail() expects at most 5 parameters, 8 given in /home/southern/public_html/sendmail.php on line 10

Warning: Cannot modify header information - headers already sent by (output started at /home/southern/public_html/sendmail.php:10) in /home/southern/public_html/sendmail.php on line 11


5 parameters? 8? huh!? well anyway, this is what i have in my php file:

<?
$pre = $_REQUEST['pre'] ;
$first = $_REQUEST['first'] ;
$last = $_REQUEST['last'] ;
$email = $_REQUEST['email'] ;
$phone = $_REQUEST['phone'] ;
$message = $_REQUEST['message'] ;

mail( "jbuche@westerniplaw.com", "Feedback Form Results",
$pre, $first, $last, $phone, $message, "From: $email" );
header( "Location: http://www.southerncaliforniapatents.com/thankyou.html" );
?>

this is the page i'm working with is here:
http://www.southerncaliforniapatents.com/contact8.html

mail forms should be pretty easy, right? has anyone seen this or know why mine won't send? thanks so, so much:o
heidi is offline