![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Drunk and Unruly
Join Date: Jan 2002
Location: Hollywood
Posts: 22,712
|
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" ); ? >
__________________
I've trusted my sites to them for over a decade... Webair, bitches. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Drunk and Unruly
Join Date: Jan 2002
Location: Hollywood
Posts: 22,712
|
__________________
I've trusted my sites to them for over a decade... Webair, bitches. |
![]() |
![]() ![]() ![]() ![]() ![]() |