Bug with multipart/form-data ?
| From: | gayard at ig dot com dot br | Date: | Mon, 05 Apr 2004 19:21:40 +0000 |
| Subject: | Bug with multipart/form-data ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-182398@lists.php.net to get a copy of this message | ||
Hi.
I have a form in a page 1, that POSTs a file and some hidden's to page 2. If
the file size is bigger that the max in php.ini, in page 2, $_POST is
empty.
In the mood for a look ?
upload.html:
<html>
<body>
<h1>Attach your file here:</h1>
<form name=anexar action=upload2.php enctype="multipart/form-data"
method=post onSubmit=return(validar(this));>
<input type=hidden name=duck value="duck" />
<input type=file name=arquivo />
<input type=hidden name=pig value="pig" />
<input type=submit value="Sub !" />
</form>
</body>
</html>
upload2.php:
<pre>
<?php
var_dump($_POST);
var_dump($_FILES);
?>
</pre>
$_POST is empty...
Is this a bug ? Or have I done some wrong ?
Thanks
Leonel
_________________________________________________________
Voce quer um iGMail protegido contra vírus e spams?
Clique aqui: http://www.igmailseguro.ig.com.br