Forums

ASP

This topic is locked

Two actions with one SUBMIT

Posted 09 Jul 2008 08:12:03
1
has voted
09 Jul 2008 08:12:03 Jim ANDERSON posted:
Hi.

When a visitor fills in a form, I need to insert/update a record in my database AND send a mail informing the webmaster that a record has been inserted/updated.

I use PHP and MySQL.

Is there a simple way to COMBINE THESE TWO ACTIONS?

Please help, as my client needs this rather quickly.

Jim. <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>

Replies

Replied 09 Jul 2008 14:17:07
09 Jul 2008 14:17:07 Alan C replied:
Hi
I think a bit more information is needed, are you performing one of these actions already?

If you already have the update query working then you can send the email straight after it when you know that the update has happened using the mail function in php.

mail documentation

ie.php.net/function.mail

Reply to this topic