Re: Global & POST & uploading files
| From: | Frank Westerbeke | Date: | Sun, 30 Mar 2003 20:35:30 +0000 |
| Subject: | Re: Global & POST & uploading files | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19194@lists.php.net to get a copy of this message | ||
"Chris" <spam@bittersweet2.com> schreef in bericht
news:oprml6qonuoldh07@news.php.net...
> On Tue, 25 Mar 2003 13:13:05 -0500, Afan Pasalic <phplist@captainjack.com>
> wrote:
>
> > While was working on staging server (Global On) everythign was working
> > ok:
> > <form ENCTYPE=multipart/form-data action="<?php echo $PHP_SELF; ?>"
> > name=qmform method=post>
> > Product name: <input name=prod_name value="<?php echo $_POST[prod_name];
> > ?>" type=text size=30>
> > Product Ser.#:<input name=img_name value="<?php echo $_POST[img_name];
> > ?>" type=text size=30>
> > Upload 1st image: <input name=var1 type=file size=30>
> > Upload 2nd image: <input name=var2 type=file size=30>
> > Upload 3rd image: <input name=var3 type=file size=30>
> > <INPUT type=hidden name=MAX_FILE_SIZE value="<?php echo
> > $my_max_file_size; ?>">
> > <input type=submit name=SubmitAdd value="Upload!"></td>
> > </form>
> >
> > But, pushing to other server (Global Off) - can't read variables $var1,
> > $var2, $var3, actually $POST[var1], $POST[var3], $POST[var3].
> > Even, listing by:
> >
> > while(list($key, $value) = each($HTTP_POST_VARS))
> > echo"$key: $value<br>";
> >
> > can see just prod_name, MAX_FILE_SIZE i SubmitAdd variables.
> >
> > Need $var1, $var2 and $var3 to validate uploaded files - have to be only
> > jpg format.
> >
> > Any idea?
> >
> > Afan
> >
> >
>
> http://bugs.php.net/bug.php?id=17958
>
> I think I have the same problem on a Win2k server running Apache. When we
> switch it to IIS, it works. If I try a print_r($_POST), it shows an empty
> array. Only happens with "multipart/form-data" forms.
>
> --
> Using M2, Opera's revolutionary e-mail client:
> http://www.opera.com/m2/
That makes three of us.
And not only on W2K also on Linux.
Even more frustrating is that scripts like phpMyAdmin do not seem to bother.
Frank