help!!!!

From: Date: Fri, 19 Jul 2002 20:12:03 +0000
Subject: help!!!!
Groups: php.general 
Request: Send a blank email to php-general+get-108569@lists.php.net to get a copy of this message
Hi, I was trying to upload files in php and came across some problems. I am using Apache on Linux. My first file was: -html- -form action="t1.php" method="post"- -input type="hidden" name="MAX_FILE_SIZE" value="100000"- Send this file: -input name="ttt" type="file"- -input type="submit" value="send"- -/form- -/html- If I use enctype in the <form> attribute, no form variables are made available in t1.php. t1.php is as follows: <? echo $MAX_FILE_SIZE; echo "<br>"; $filename = $HTTP_POST_FILES['ttt']['tmp_name']; echo $filename; $realname = $HTTP_POST_FILES['ttt']['name']; print "realname is $realname"; ?> $filename or $realname are not display. I set register_globals to on and my variables_order string is also set to EGPCS. I'm sure I am making a very basic/stupid mistake here, but could somebody help me out, please? Thank you. ramya "We have forgotten how to be good guests, how to walk lightly on the earth as other creatures do." Visit www.greenpeaceusa.org

« previous php.general (#108569) next »