Heya,
So I have a form at http://testing04.firetree.us that has multiple fields, I am using scripts/contact.php file to email the data but it only allows me to send one field using $message
I need to have it send all the fields (ie first_name, last_name, phone, etc...) Can anyone help? Thanks!
PHP Mail() function, need help...
Moderator: General Moderators
-
WithHisStripes
- Forum Contributor
- Posts: 131
- Joined: Tue Sep 13, 2005 7:48 pm
-
WithHisStripes
- Forum Contributor
- Posts: 131
- Joined: Tue Sep 13, 2005 7:48 pm
- iknownothing
- Forum Contributor
- Posts: 337
- Joined: Sun Dec 17, 2006 11:53 pm
- Location: Sunshine Coast, Australia
basic example...
with that posText thing... (I dont think its a good idea however, may lead to injections, call the POST into a variable first)
Code: Select all
$message = Name: $name\nEmail Address: $email\nPhone No.: $phone\nFax No.: $fax\n\nEnquiry:\n$message\n\n--- End of Details ---\n";Code: Select all
$message = Name: $name\nText: $_POST['posText']";