Guest Ichpuchtli Posted August 9, 2006 Share Posted August 9, 2006 OK I admit I am not very good at all the complicated PHP stuff. But I have a problem. <? $email = $_REQUEST['email']; $message = $_REQUEST['message']; $name = $_REQUEST['name']; $name2 = $_REQUEST['name2']; $Land = $_REQUEST['Land']; mail( "andy@ichpuchtli.com", "Form Thing.", "First Name: $name", "Last Name: $name2", "From: $email" ); header( "Location: [url=http://not]http://not[/url] telling where." );?> Now when I want more Like lets say Message. <? 1 $email = $_REQUEST['email']; 2 $message = $_REQUEST['message']; 3 $name = $_REQUEST['name']; 4 $name2 = $_REQUEST['name2']; 5 $Land = $_REQUEST['Land']; 6 mail( "andy@ichpuchtli.com", "Form Thing.", 7 "First Name: $name", 8 "Last Name: $name2", 9 $message, "From: $email" ); 10 "Country: $Land", 11 header( "Location: [url=http://not]http://not[/url] telling where." );?> The mail thing claims it can only have 5 things but it decects number six on line 10.I need help on how I can get some more info through the form to me. Thanks. Link to comment Share on other sites More sharing options...
skym Posted August 9, 2006 Share Posted August 9, 2006 That's completely wrong, and it's not that complicated. mail() has 5 parameters ("things") indeed, and the 3rd parameter is the message, and only the 3rd. In your case the correct code would be: <?php$email = $_REQUEST['email'];$message = $_REQUEST['message'];$name = $_REQUEST['name'];$name2 = $_REQUEST['name2'];$Land = $_REQUEST['Land'];$message="First Name: $name \r\nLast Name: $name2 \r\nCountry: $Land \r\nMessage: $message \r\n";mail( "andy@ichpuchtli.com", "Form Thing.",$message, "From: $email" );header( "Location: ... " );?> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now