even this simple code
it show me the form, but when i submit it show error>
when code dont have enctype...work fine but of course without image
Code:
<html>
<head>
<title>t</title>
</head>
<body>
<?php
if(!isset($_POST["sub"]) or ($_POST["sub"]!="OK")){
?>
<form action="t.php" method="post" enctype="multipart/form-data">
<input type="file" name="f"><br>
<input type="Submit" name="sub" value="OK"></form>
<?php
}else{
?>
OK1
<?php
echo "s=".$_FILES['f']['size'];
}
?>
</body>
</html>
it show me the form, but when i submit it show error>
Code:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@<...>.x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
when code dont have enctype...work fine but of course without image
Last edited: