PHP form error PHONE and LASTNAME do not get emailed

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dante
Forum Newbie
Posts: 1
Joined: Thu Aug 26, 2004 6:45 pm

PHP form error PHONE and LASTNAME do not get emailed

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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]])
Post Reply