rendered paste body<html><head><title>UPLOAD</title><script type="text/javascript" language="javascript"> function doUpload(x,y,z){ document.getElementById(x).style.display="none"; document.getElementById(y).style.display="block"; document.getElementById(x).submit(); }</script></head><body><div id="ulDiv"><form enctype="multipart/form-data" action='val.php' method="POST" id="ulForm> <!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="120000" /> <!-- Name of input element determines name in $_FILES array --> Send this file: <input name="userfile" type="file" /> <input type="button" value="Send File" onClick(doUpload('ulDiv', 'animGif', 'ulForm') /></form></div><div id="animGif"> <img src="....." /></div></body></html>