-
PHP code.. needs altering here... way over my head
I have this code I got from a tut here on FK. It works but I have more fields than the standard to/from/subject/message...
How do I alter this code to include more.. as in phone number, address, city??
<?php
mail("mdesamito@hotmail.com", $subject, $message, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>
ps... it needs to show up in the message section of my email.
help me pelezzzzzzzzz =)
-
Hi,
so put them into the message...
$message = "
request for info
Name: $name
Street: $street
City: $city
Zip: $zip
Phone: $phone Fax $fax
has left this message:
" . $message;
Musicman
-
<?php
mail("mdesamito@hotmail.com", $subject, $message = "
request for info
Name: $name
Street: $street
City: $city
Zip: $zip
Phone: $phone Fax $fax
has left this message:
" . $message; , "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>
is this the correct syntax.. I don't know about php. after I put these variables in the $message field... does it close like this ".message; ," or ".message;" or ".message,"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|