Re: reg globals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# ross@xxxxxxxxxxxxx / 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux