Dirt_Diver
08-25-2008, 12:29 PM
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 ;
mail('myemail@host.com', 'New Uploaded Feature Image', 'a user has uploaded an image to be reviewed for a featured image.
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.
<input name="Submit" type="submit" value="Upload Image">
Can I add the mail function to something like this?
<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.?> ">
mail('myemail@host.com', 'New Uploaded Feature Image', 'a user has uploaded an image to be reviewed for a featured image.
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.
<input name="Submit" type="submit" value="Upload Image">
Can I add the mail function to something like this?
<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.?> ">