GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   I hhave a 3rd grade level PHP question, any 4th graders here? (https://gfy.com/showthread.php?t=414030)

Pornwolf 01-09-2005 02:12 AM

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" );
? >

rickholio 01-09-2005 02:20 AM

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?

Pornwolf 01-09-2005 02:24 AM

Thanks a million!

I love you guys' website! www.holio.net It's pretty damn cool! :thumbsup


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