reg globals

From: Date: Thu, 11 Jan 2007 10:08:07 +0000
Subject: reg globals
Groups: php.general 
Request: Send a blank email to php-general+get-246896@lists.php.net to get a copy of this message
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.

« previous php.general (#246896) next »