Current location: Hot Scripts Forums » Programming Languages » PHP » Adding to an existing PHP script to drop form info into an Excel ss


Adding to an existing PHP script to drop form info into an Excel ss

Reply
  #1 (permalink)  
Old 07-21-04, 09:37 AM
jerryh0707 jerryh0707 is offline
New Member
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Adding to an existing PHP script to drop form info into an Excel ss

Here is my existing script. Right now myself and one other person receives an e-mail confirmation notifying us that a form has been submitted....





<?php

if(isset($submit)){

//send mail

mail("lkarnowski@2ndwindexercise.com", "2nd Wind Form", "

Congratulations! Your Form has been filled out.
-----------------------------------------------------------------
CONTACT INFORMATION
-----------------------------------------------------------------
CONTACT

NAME:
$first $last

PHONE:
$phone

EMAIL ADDRESS:
$email



-----------------------------------------------------------------
");

mail("jholland@2ndwindexercise.com", "2nd Wind Form", "

Congratulations! Your Form has been filled out.
-----------------------------------------------------------------
CONTACT INFORMATION
-----------------------------------------------------------------
CONTACT

NAME:
$first $last

PHONE:
$phone

EMAIL ADDRESS:
$email


-----------------------------------------------------------------
");

//send javascript alert.
echo("<script language='javascript'>alert('Thank you, your form has been submitted.');</script>");

}

?>



Now I want each form submitted to simply be dropped into an Excel spread sheet sitting on my desktop. Based on the provided script, exactly how do I write this script seperating it into the necessary fields (name,e-mail,phone), and where do I exactly paste it into this existing code?

Thank you,

Jerry Holland
Reply With Quote
  #2 (permalink)  
Old 07-21-04, 03:03 PM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 758
Thanks: 0
Thanked 0 Times in 0 Posts
unless you are running a server on your computer that is impossible without sometype of access to your computer. But if you want to do this say on a server you could use COM.

http://us3.php.net/com
__________________
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cascade info script? zeon Script Requests 0 05-23-04 11:42 PM
accessing existing ISP email with a PHP webmail script. nlancaster PHP 1 01-07-04 03:28 AM
Affiliate script (PHP) whtiebear Job Offers & Assistance 2 12-21-03 12:12 AM
PHP script that uploads and emails the form. ./n00b3 PHP 5 11-24-03 03:16 PM
PHP to MySQL script question...(using a field to update info in MySQL) DisneyFan25863 PHP 4 11-02-03 03:31 AM


All times are GMT -5. The time now is 04:13 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.