Image Upload within Same Page display
<html> <head> <title>upload_file</title> </head> <body> <center> <form action="uploadimage.php" method="post" enctype="multipart/form-data" name="upload"> <table width="300" border="10"> <tr> <td>Select File</td> <td><input name="file" type="file" /></td> </tr> <tr> <td colspan="2"><center> <input name="sub" type="submit" value="upload" /> </center></td> </tr> </table> </form> </center> </body> </html> <?php error_reporting(0); if(isset($_POST['sub'])) { $name=$_FILES['file']['name']; $type=$_FILES['file']['type']; $size=$_FILES['file']['size']; $tmp=$_FILES['file']['tmp_name']; if($name=='...