rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>File Uploader</title><script type="text/javascript">function uploadFile(){ var status = document.getElementById('status'); var form = document.getElementById('theform'); var frame = document.getElementById('theframe'); frame.src = form.action; form.action = ''; var a = '<img src="loading.gif" width="126" height="22" />'; status.innerHTML = a; return true;}function uploadDone(msg){ var status = document.getElementById('status'); status.innerHTML = msg;}this.onload = function() { document.getElementById('theform').onsubmit = uploadFile(); }</script></head><body><form action="upload.php" target="theframe" enctype="multipart/form-data" id="theform"> <input type="file" name="uploadfile" /><br /> <input type="submit" value="Go!" /></form><div id="status"> </div><iframe name="theframe" id="theframe" src="upload.php"></iframe></body></html>