View Single Post
  #6 (permalink)  
Old 11-12-09, 09:04 AM
therocket954's Avatar
therocket954 therocket954 is offline
Community Liaison
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 334
Thanks: 2
Thanked 8 Times in 8 Posts
This will work:

Change your top block of PHP to this:
PHP Code:

//define a maxim size for the uploaded images in Kb
define ("MAX_SIZE","1000");
// Get name from form
$firstname $_POST['firstname']; 
And then in your block of code that sends the email change to this:

PHP Code:

//If no errors registred, print the success message
if(isset($_POST['Submit']) && !$errors)
{
    
$to "me@mydomain.com";
    
$subject "File upload";
    
$body "My file uploaded successfully... The link is: " .$newname;
    
$body .= "\n"// just creates a new line
    
$body .= "Name: " .$firstname;
    
    
// Send the email
    
mail($to$subject$body"From: <me@mydomain.com>");
    
    
// Show message
    
echo "<h1>File Uploaded Successfully! Try again!</h1>";

__________________
--Eric Allison
Twitter: http://www.twitter.com/Eric_Allison
Reply With Quote
The Following User Says Thank You to therocket954 For This Useful Post:
braca86 (11-13-09)