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

Reply via email to