php-windows | 2003032
Date: 03/25/03
- Next message: Bobo Wieland: "[PHP-WIN] uploading files"
- Previous message: Christoph Grottolo: "[PHP-WIN] Re: GD in PHP 4.3.0"
- In reply to: Afan Pasalic: "[PHP-WIN] Global & POST & uploading files"
- Next in thread: Frank Westerbeke: "[PHP-WIN] Re: Global & POST & uploading files"
- Reply: Frank Westerbeke: "[PHP-WIN] Re: Global & POST & uploading files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 25 Mar 2003 13:13:05 -0500, Afan Pasalic <phplist <email protected>>
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/-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Bobo Wieland: "[PHP-WIN] uploading files"
- Previous message: Christoph Grottolo: "[PHP-WIN] Re: GD in PHP 4.3.0"
- In reply to: Afan Pasalic: "[PHP-WIN] Global & POST & uploading files"
- Next in thread: Frank Westerbeke: "[PHP-WIN] Re: Global & POST & uploading files"
- Reply: Frank Westerbeke: "[PHP-WIN] Re: Global & POST & uploading files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

