CODE
<form enctype="multipart/form-data" method="post" action="uploads.php">
<?php
$poster = $_SESSION["valid_user"];
if ($_POST["action"] == "Upload") {
//if ($_POST[filep]!="") {
$folder = "storages/";
move_uploaded_file($_FILES["filep"]["tmp_name"] , "$folder".$_FILES["filep"]["name"]);
echo "<br/>
<p align=center>Filename \"<b>".$_FILES["filep"]["name"]. "</b>\" already exist!!";
$resultz = mysql_query("INSERT into storages VALUES($_POST[newsid],'".$_FILES['filep']['name']."','$_POST[entrydesc]')");
if($resultz) {
echo "<script>self.location='adminpage.php'</script>";
}
//} else {
// echo "no files to be uploaded";
//}
}
echo "<tr>
<td><input type='hidden' name='newsid' value=". $curid ." /></td>
</tr>
<tr>
<td style='padding: 3px 10px 0px 50px;font:12px tahoma'>Filename</td>
<td><input type='file' name='filep' /></td>
</tr>
<tr valign='top'>
<td style='padding: 3px 10px 0px 50px;font:12px tahoma'>File Description</td>
<td><textarea style='width:350px;height:150px' name='entrydesc'></textarea></td>
</tr>
<tr>
<td><input type='hidden' name='dates' value=" . $dates ." /></td>
<td colspan='2' align='right'><input type='submit' name='action' value='Upload' /></td>
</tr>";
?>
hello here i am again..i have this code for upload option on my site..buy im having problem uploading a file of more than 2mb of its size..how could i make it to upload up to 10mb only..?? please help me..