Page 1 of 1

PHP form error PHONE and LASTNAME do not get emailed

Posted: Thu Aug 26, 2004 6:45 pm
by dante
I have a php form, the elements: "firstname" and "email" get emailed fine, no problems.but, "phone" and "lastname" do not. can you help me.


this is how it looks:
mail.php

<?
$email = $_REQUEST['email'] ;
$firstname = $_REQUEST['firstname'] ;
$lastname = $_REQUEST['lastname'] ;
$phone = $_REQUEST['phone'] ;


mail( "test@test.com", "Site feedback",
$firstname, $last name, $phone, "From: $email" );
header( "Location: http://www.ewebcart.com/cgi-bin/cart.pl ... 1395&add=1" );
?>

your response would be apreciated.

Dante

Posted: Thu Aug 26, 2004 6:50 pm
by feyd
wrong argument count for [php_man]mail[/php_man]():
bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]])