Mail Form error

From: Date: Sun, 04 Mar 2001 18:34:40 +0000
Subject: Mail Form error
Groups: php.db 
Request: Send a blank email to php-db+get-7109@lists.php.net to get a copy of this message
Can someone please tell me why this form doesn't work? I get the following error: Warning: Wrong parameter count for mail() in /home/www/projects/temp/mailform4.php on line 11 The code is as follows: <html> <head> <meta name="Author" content="Chris Mills"> </head> <body> <?php $MYEMAIL = "root@localhost"; if ($ACTION == "send-mail") { mail($MYEMAIL,$TITLE,$NAME,$COMPANY,$CITY,$COUNTRY,$EMAIL,$NUM,"From: $EMAIL"); echo "<h2>Your information has been submitted.</h2>\n"; } else { echo "<h2>Use this form to submit your information.</h2>\n"; } ?> <b><u>Please fill in the form and then click submit:</u></b> <FORM METHOD=POST> <INPUT TYPE=HIDDEN NAME="ACTION" VALUE="send-mail"> <PRE>Title: <INPUT TYPE=TEXT NAME="TITLE"></PRE> <PRE>Name: <INPUT TYPE=TEXT NAME="NAME"></PRE> <PRE>Company: <INPUT TYPE=TEXT NAME="COMPANY"></PRE> <PRE>City: <INPUT TYPE=TEXT NAME="CITY"></PRE> <PRE>Country: <INPUT TYPE=TEXT NAME="COUNTRY"></PRE> <PRE>Email: <INPUT TYPE=TEXT NAME="EMAIL"></PRE> <PRE>Contact number: <INPUT TYPE=TEXT NAME="NUM"></PRE> <INPUT TYPE=SUBMIT> * <INPUT TYPE=RESET> </FORM> </body> </html> Thanx Rudi Ahlers

« previous php.db (#7109) next »