Thread: SQL to CSV
View Single Post

   
  #7 (permalink)  
Old 02-28-2008, 07:35 AM
Bill Karwin
 
Posts: n/a
Default Re: SQL to CSV

Garry Jones wrote:
> When the user submits the form I would like to immediately send a copy of
> the data entered to the users own email adress and my email adress (as
> backup incase there is an MySQL problem.


So you must have a script somewhere that is handling the form and
inserting data into the MySQL database. I infer from your other
postings that you're using PHP.

There are functions that can be used in PHP to send email.

Here's a tutorial on how to do use them:
http://www.phpfreaks.com/tutorials/130/0.php

Your PHP script that inserts data to MySQL has access to the form
parameters, of course. Use the same values to populate the mail message
as a string, and then send it with the PHP mail class.

Regards,
Bill K.
Reply With Quote