PepsiMax Posted May 26, 2008 Share Posted May 26, 2008 Hello, Can someone explain me how i can do the following, i made an insert form to a database, and i was wondering how i could get a message by email that someone filled in the form. thx Link to comment https://forums.phpfreaks.com/topic/107347-submit-into-db-and-email-message/ Share on other sites More sharing options...
BlueSkyIS Posted May 26, 2008 Share Posted May 26, 2008 http://us.php.net/function.mail Link to comment https://forums.phpfreaks.com/topic/107347-submit-into-db-and-email-message/#findComment-550371 Share on other sites More sharing options...
PepsiMax Posted May 26, 2008 Author Share Posted May 26, 2008 thx, but how to create the code that after the insert into the db a mail is sent to me ? Link to comment https://forums.phpfreaks.com/topic/107347-submit-into-db-and-email-message/#findComment-550375 Share on other sites More sharing options...
darkfreaks Posted May 26, 2008 Share Posted May 26, 2008 <?php $sql= "INSERT INTO table VALUES (values)"; $result= mysql_query($sql); if ($result) { // mail } else { //error }?> Link to comment https://forums.phpfreaks.com/topic/107347-submit-into-db-and-email-message/#findComment-550387 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.