I have a PHP page that users can upload an image to the site. I wanted to get an email everytime a user uploads an image so I added ;
Which is all fine and dandy but now everytime the page loads I get an email. What I would like to is see if I can add it to the value section of my upload button.PHP Code:mail('myemail@host.com', 'New Uploaded Feature Image', 'a user has uploaded an image to be reviewed for a featured image.
Can I add the mail function to something like this?Code:<input name="Submit" type="submit" value="Upload Image">
Code:<input name="Submit" type="submit" value="Upload Image", "<?php mail('myemail@host.com', 'New Uploaded Feature Image', 'a user has uploaded an image to be reviewed for a featured image.?> ">



Reply With Quote

Bookmarks