almost 11 years ago
<!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form action="upload.php" method="POST" enctype="multipart/form-data"> <table cellpadding="10"> <tr> <td>Name : </td> <td><input type="text" name="name" /></td> </tr> <tr> <td>Photo : </td> <td><input type="file" name="photo" /></td> </tr> <tr> <td align="center" colspan="2"> <input type="submit" value="Upload Data" /> </td> </tr> </table> </form> </body> </html> </br> <?php $str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; $str = str_shuffle($str); $photo = substr($str, 1,15); $name = $_POST['name']; $filename = $_FILES['photo']['name']; $x = strpos($filename, '.'); $extname = substr($filename, $x); $filesize = $_FILES['photo']['size']; $filetype = $_FILES['photo']['type']; $tmp_name = $_FILES['photo']['tmp_name']; move_uploaded_file($tmp_name, 'uploads/'.$photo.$extname); ?> <!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> Name : <?php echo $name;?> <hr> File Name : <?php echo $filename;?> <hr> Size : <?php echo $filesize;?> Bytes <hr> Type : <?php echo $filetype;?> <hr> Temp Name : <?php echo $tmp_name;?> </body> </html>
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)