rendered paste body<?phpif ($_REQUEST[completed]) { $newname = uniqid("whc").".jpg"; move_uploaded_file($_FILES['mailfile']['tmp_name'], "images");}?><html> <head> <title>Upload page</title> </head> <body> <h1>Image Uploader</h1><?phpif ($_REQUEST[completed] != 1) {?> <p>Please upload an image</p> <form enctype="multipart/form-data" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="1500000"> <input type="hidden" name="completed" value="1"> Choose file to send: <input type="file" name="mailfile"> and <input type="submit"> </form><?php} else echo " <p>Yum, Yum. I enjoyed that</p>\n";?> <hr> Copyright, testscript </body></html>