reg globals

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

 



In a very old site of mine and not knowing any better I never used $_POST.

The server it has on has now decided to turn change it;s config...fair 
enough but I am having problems with an attahcment in  form. I have change 
all the other varible to $_POST but the attachment is causing me trouble.


It is called

<input name="userfile" type="file" id="userfile">


but when I try and attach it (phpmailer)

 $userfile= $_POST['userfile'];
$mail->AddAttachment($userfile, $_FILES['userfile']['name']);

it now doesn't attach. any ideas?



R.

-- 
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