RE: [PHP] 4.0.6 to 4.3.0

From: Date: Fri, 07 Feb 2003 15:13:19 +0000
Subject: RE: [PHP] 4.0.6 to 4.3.0
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134728@lists.php.net to get a copy of this message
[snip] > > > > > > After upgrading from 4.0.6 to 4.3.0 > > > > > > > Most probably because with 4.3.0 register_globals is set to OFF > by default - > > where does $attach get set? > > > > > Nope, I do have register_globals on in php.ini > > Its being set in another file like this: > <form enctype="multipart/form-data" name-doit action="send_message.php" > method=POST> > > <input type=file name=attach size=68> > > It behaves like, if ($_GET['attach'] != "none") or ($attach != > "none") > is always true. > > If I attach something it goes through no prob, if I do not attach > something > it still goes through but with all the error messages and an > empty attachment > at the recieving end. Only thng that has changes was upgrading > PHP from 4.0.6 > to 4.3.0 > Hi Brian Why are you using $_GET[] when your form is submitting via the 'post' method? Secondly for file uploads why are you not using the $_FILES[] superglobal array? Rich

« previous php.general (#134728) next »