View Full Version : $_FILES is empty!

03-02-2008, 09:37 PM
can't upload files.. can someone help pls?


if (isset($_POST['createUserGroup_x'])) {

echo 'this output displays when the form is submitted';

var_dump($_FILES); // this is empty -- why? I uploaded a file which was only 12 kb!


echo 'nothing in here outputs because $_FILES is empty';


echo 'the remainder of my form outputs down here';

// what am I doing wrong?

<form action="" method="post" id="commentform" name="commentform">

<input type="hidden" name="MAX_FILE_SIZE" value="100000" />

<input type="file" name="uploadedfile" size="30" />

<input id="createUserGroup" name="createUserGroup" type="image" src="/img/icons/icon_submit.gif" />


03-02-2008, 09:39 PM
gah! I am so stupid!!!!


how could I forget this???

sleep helps...

03-02-2008, 09:59 PM
Everyone makes mistakes :P Just most of the time we catch them before we post questions on them :P

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum