Re: help!!!!
| From: | Scott Hurring | Date: | Fri, 19 Jul 2002 20:58:30 +0000 |
| Subject: | Re: help!!!! | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108575@lists.php.net to get a copy of this message | ||
and also, try
var_dump($HTTP_POST_FILES);
var_dump($_REQUEST);
to see if anything is incoming
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Nick Oostveen" <nicko-ml@hpmarketing.com> wrote in message
news:5.1.1.6.0.20020719133555.03329288@pop.hpmarketing.com...
> You need to add the enctype="multipart/form-data" attribute to your form
> tag to be able to upload files.
>
> At 04:12 PM 7/19/2002 -0400, rasokan wrote:
> >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
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
>