0

Dear Friends,
As usually I came with a PHP Problem.
I've created a form. When user press the Submit button all the data will added to the database.
I want to send an email with all data in form to my inbox when the user pressed a submit button.

Summary is I wants to add dual action when user press submit button.
1. Add data to the Database
2. Send an email to my inbox

Need your help.
Thanks

5
Contributors
4
Replies
18
Views
4 Years
Discussion Span
Last Post by crescendo
0
**Use:Example:**
<?php
if(isset($_POST['submit']))
{
     $SQL = "INSERT INTO tablename(ID, Name, Price) VALUES ('', '4-6 Days', '£75.00')";
     $result = mysql_query($SQL);
}
?>
And use mail(to,subject,message,headers,parameters) function to send the email.
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.