Current location: Hot Scripts Forums » Programming Languages » PHP » Email Confirmation upon Update Record


Email Confirmation upon Update Record

Reply
  #1 (permalink)  
Old 05-03-04, 04:46 PM
viperL6 viperL6 is offline
New Member
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Email Confirmation upon Update Record

When a user updates a page on my site, I would like the site to send me an email letting me know that an update has occurred.

I've tried inserting this code into the update record php but have been unsuccessful.


PHP Code:

$sendto "email@address.com";


if (
$_POST) {
    while(list(
$key,$val)=each($_POST))
    {
        if (
$key!="submit") {
        
$formdata .= "$key$val\n";
        }
    }
mail("$sendto","Monday Classes Updated","An Admin ($REMOTE_ADDR) Has updated the Monday class schedule. Here are the details:\n\n$formdata","FROM: $sendto");
exit;

Is it possible to attach two actions to one form?

Last edited by viperL6; 05-03-04 at 05:03 PM.
Reply With Quote
  #2 (permalink)  
Old 05-03-04, 07:26 PM
rec0n rec0n is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Earth
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
why didn't the following work? where there any errors outputted?
__________________
-- my bad lol
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
update site using email i-creations Script Requests 1 12-14-03 03:56 AM
how do i add a record AND send an email in one step? nickleidecker ASP 2 10-14-03 07:12 PM
How can I do a confirmation email for a database? ashur PHP 1 08-22-03 07:32 AM
Email Confirmation Script dandy PHP 1 08-12-03 06:41 AM
How can I do a confirmation email for a database? ashur ASP 2 08-05-03 09:42 PM


All times are GMT -5. The time now is 10:31 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.