Krash Posted May 30, 2010 Share Posted May 30, 2010 I have a php script that allows the user to edit a .txt file on the server in a textarea window, and save the changes with form submit. Would like to be notified whenever a file is edited. Is there a way to add a mailto or equivalent to the form submit? Here's the form code: <form action='$_SERVER[php_self]' method='post'> <textarea name='newd' cols='120' rows='25' style='font-size:10pt; font-family:arial; color:#000050; padding:10px; border:1px solid #000050'>$data</textarea> <br><br> <center> <input type='reset' name='reset' value=' Reset '> <input type='submit' value='Save Changes'> <input type='button' value='Finished' onclick=window.location.href='http://www.xxxxxxxxxxxx.com/network/playlistedit/playlistedit.htm'> Link to comment https://forums.phpfreaks.com/topic/203320-add-email-notification-to-form-submit/ Share on other sites More sharing options...
kenrbnsn Posted May 30, 2010 Share Posted May 30, 2010 Just add the mail function to your processing script. Link to comment https://forums.phpfreaks.com/topic/203320-add-email-notification-to-form-submit/#findComment-1065218 Share on other sites More sharing options...
Krash Posted May 30, 2010 Author Share Posted May 30, 2010 Works fine - thanks! Link to comment https://forums.phpfreaks.com/topic/203320-add-email-notification-to-form-submit/#findComment-1065221 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.