![]() |
I hhave a 3rd grade level PHP question, any 4th graders here?
I know jack shit about php so I'm having a helluva time making this simple form mail php script add the $name $email $address & the $message into the email's body. As it is, it only adds the $message. What am I doing wrong?
< ? $email = $_REQUEST['email'] ; $name = $_REQUEST['name'] ; $phone = $_REQUEST['phone'] ; $address = $_REQUEST['address'] ; $message = $_REQUEST['message'] ; mail( "[email protected]", "New Cleaning Order!", $message, "From: $email" ); header( "Location: http://www.mywebsite.com/thankyou.htm" ); ? > |
Assuming you want to add the stuff into the body of the email itself, something like this would work:
<? $mailout = "Name: $_REQUEST[name]\n"; $mailout .= "Phone: $_REQUEST[phone]\n"; $mailout .= "Address: $_REQUEST[address]\n"; $mailout .= "Message:\n$_REQUEST[message]"; mail( "[email protected]", "New Cleaning Order!", $mailout, "From: $_REQUEST[name] <$_REQUEST[email]>" ); header( "Location: http://www.mywebsite.com/thankyou.htm" ); ?> Is that what you're after? |
|
All times are GMT -7. The time now is 02:07 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123