Mailinglisten-Archive |
On Mon, 8 Apr 2002 19:57:26 +0200, Marc-Alexander Prowe
<listen_(at)_mohajer.de> wrote:
>>>> Inzwischen habe ich das Problem weiter eingrenzen koennen. Sobald in
>>>> dem Formular
>>>> echo "<input type=\"file\" name=\"image_big\">";
>>>> verwendet wird, tauchen alle Variablen in dem Formular ab obiger Zeile
>>>> nicht mehr in HTTP_POST_VARS auf.
>>>
>
>Hmm.. ich hab's gerade hier auf einem Test-System (WinNT/IIS) unter
>4.1.2 nicht nachvollziehen hönnen.
>Lass' Dir doch mal einfach 'phpinfo()' gleich zu Anfang des
>Zielskripts ausgeben und schau, ob, und wenn ja wie, Du Deine Werte
>dort wiederfindest.
Wenn ich _kein_ <input type=file> habe gibt mit phpinfo() folgendes:
_POST["svTable"] csc_article
_POST["id"] 21
_POST["saField"] Array
(
[category] => test
[product_number] => 11111
[desc_short] => 111
[desc_long] => 11111111
[special] => 111
[flag_display] => 1
[price_a] => 1111111.00
[price_b] =>
[price_c] =>
[price_d] =>
[price_e] =>
[tax_rate] => 6.00
)
_POST["svDel"]
_POST["btnEdit"] Submit
_SERVER["CONTENT_LENGTH"] 1759
Habe ich hingegen im Formular <input type=file> gibt mir phpinfo()
dieses:
_POST["svTable"] csc_article
_POST["id"] 21
_POST["saField"] Array
(
[category] => test
[product_number] => 11111
[desc_short] => 111
[desc_long] => 11111111
[special] => 111
[flag_display] => 1
[price_a] => 1111111.00
[price_b] => 0.00
[price_c] => 0.00
[price_d] => 0.00
[price_e] => 0.00
[tax_rate] => 6.00
)
_FILES["image_small"] Array
(
[name] =>
[type] => application/octet-stream
)
_SERVER["CONTENT_LENGTH"] 2060
Es fehlen also:
_POST["svDel"]
_POST["btnEdit"] Submit
Beide Variablen sind im Formular nach dem Feld fuer den Datei-Upload
positioniert.
ciao, Andreas
--
[amalesh] * andreas kempf * müggenkampstr 7a * 20257 hamburg
http://www.amalesh.de * info_(at)_amalesh.de * tel: 040-401744412
php::bar PHP Wiki - Listenarchive