Topic awaiting preservation: PHP $_POST |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: INFRONT OF MY PC |
posted 11-28-2007 17:19
Ok this one is realy strange |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 11-28-2007 17:35
Could be you haven't specified method="post" and enctype="multipart/form-data" on your <forms>? |
Paranoid (IV) Inmate From: INFRONT OF MY PC |
posted 11-28-2007 17:47
my enctype is correct and the file is handled via $_FILES |
Paranoid (IV) Inmate From: INFRONT OF MY PC |
posted 11-28-2007 18:11
ok some further infos code: <form method="post" action="arbeitupload.php" enctype="multipart/form-data"> Bitte Arbeit Wählen: <select name="arb" id="arb"> <? mysql_connect(); mysql_select_db(); $query = "SELECT * FROM ... "; $result = mysql_query($query) or die("An error occured " . mysql_error()); while ($line = mysql_fetch_array($result) ){ print("<option value=\"".$line['id']."\">".$line['name']."</option>"); } ?> </select> <input type="file" id="file" name="file"><br /> <input type="submit" value="Upload" name="sub" id="sub"> </form>
code: if(isset($_POST["sub"])){ some php }
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 11-28-2007 18:21
and you're sure submiting the form? |
Paranoid (IV) Inmate From: INFRONT OF MY PC |
posted 11-28-2007 18:33
i guess this is what i should have been looking for? code: ["HTTP_POST_VARS"]=> array(0) { } ["_POST"]=> array(0) { } ["HTTP_GET_VARS"]=> array(0) { } ["_GET"]=> array(0) { } |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 11-28-2007 19:34
huh. that's weird. |
Paranoid (IV) Inmate From: INFRONT OF MY PC |
posted 11-28-2007 20:00
no. there is a redirect but within the if the wired thing is it occurs with and without files there is only one form that works ..and that is excactly the same |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 11-29-2007 09:25
so... you have tried setting max_upload_size back, just in case? |