# [EMAIL PROTECTED] / 2007-01-11 10:08:07 -0000:
>  $userfile= $_POST['userfile'];
> $mail->AddAttachment($userfile, $_FILES['userfile']['name']);
> 
> it now doesn't attach. any ideas?

Check the description of $_FILES at
http://www.php.net/manual/en/features.file-upload.php#features.file-upload.post-method

It says:

$_FILES['userfile']['name']
    The original name of the file on the client machine.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to