lookielookies Posted March 25, 2007 Share Posted March 25, 2007 Hi! I have this little guestbook script. People enter their info and comments through a form, the info and comments are written to a database, and displayed on another page. Now I would like the script to send a message to the admin whenever a new comment is posted, but I can't figure it out. Can somebosy help me out? Greetz! Mieke Link to comment https://forums.phpfreaks.com/topic/44246-send-form-in-php-script/ Share on other sites More sharing options...
Hell Toupee Posted March 25, 2007 Share Posted March 25, 2007 What kind of message? By email? After the query which inserts the comment into the database, use mail() to send an email to the administrator's address. http://uk2.php.net/manual/en/ref.mail.php Check it out and come back with any problems sure. Link to comment https://forums.phpfreaks.com/topic/44246-send-form-in-php-script/#findComment-214890 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.