Hab dein Code an einigen Stellen umgeschrieben.
Versuchs mal:
Code:
<div style="position:absolute; top:160px; left:175px; ">
<form enctype="multipart/form-data" action="?action=upload" method="post">
<table width="650" border="0" cellpadding="0" cellspacing="0" bgcolor="#548B69" width="560" border="0" cellspacing="0" cellpadding="2" style="border-style:solid; border-width:1px; border-color:#000000;">
<tr>
<td><b>Screenshots hochladen</b></td>
</tr><tr>
<td> </td>
</tr>
<tr>
<td>Bild:<input **class="loginfield" name="userfile" type="file"><input type="hidden" name="MAX_FILE_SIZE" value="1000"></td>
</tr>
<tr>
<td><input class="loginfield3" type="submit" value="Send" name="upload"></td>
</tr>
</table>
</form>
</div>
<?
} if ($_REQUEST['action'] == "upload" ) {
?>
<div style="position:absolute; top:160px; left:175px; ">
<?
if (move_uploaded_file($_FILES['userfile']['tmp_name'], "_images/".$_FILES['userfile']['name'])){
} else {
** **echo "Possible file upload attack! **Here's some debugging info:\n";
** **print_r($_FILES['userfile']);
}
?>