Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Creating an attachment for emails?
Old 06-27-2010, 09:53 PM Creating an attachment for emails?
leebert45's Avatar
Novice Talker

Posts: 14
Name: Lee Wentzel
Location: Michigan, USA
Trades: 0
I am trying to take information from a web page form, and converting it into a comma or tab delimited file which can then be imported within Excel.

I have no problem having the data sent within an email. Just trying to simplify my adding the data later. (Don't want to have to retype it, or copy and paste it for fear I will mess up.)

The variable I have are:

Code:
<?php
$contact = $_POST['contPref'];
$address = $_POST['eMail'];
$subject = 'EMail from contact us form';
$fname = $_POST['fName'];
$lname = $_POST['lName'];
$street1 = $_POST['street1'];
$street2 = $_POST['street2'];
$city = $_POST['city'];
$state = $_POST['state'];
$zip = $_POST['zip'];
$phone = $_POST['phone'];
$email = $_POST['emailadd'];
$comments = $_POST['comments'];

$mailsend = mail($address, $subject, "Name:    $fname $lname
Contact: $contact
Address: $street1
         $street2
         $city , $state $zip

Phone:   $phone
Email:   $email
Comments: $comments");
echo $mailsend;
echo $body;
?>
Any help would be appreciated. Thank you very much in advance for your help.
__________________
It's never "just a game" when you're winning.
~ George Carlin ~
leebert45 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Creating an attachment for emails?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12162 seconds with 12 queries