Jump to content

Add email notification to form submit?


Krash

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.