This is my code:
I want, in place where is `document.write( 'Yeah! This file was uploaded!' );` send this form. How?Code:<script> function send() { var x = "file"; with( document.getElementById(x) ) { if( value != null) { document.write( 'Yeah! This file was uploaded!' ); } else { document.write( Sorry, but this file is not uploaded!' ); } } } </script> <form name="upload" target="okno" method="post" action="upload.php" enctype="multipart/form-data"> <input type="file" id="file" name="image_browse" style="display: none" /> <input type="text" name="image_name" class="pageContentButtonFile" /> <input type="button" value="Get File" class="pageContentButtonSelect" onclick="image_browse.click();image_name.value=image_browse.value;send()" /> </form>
Sorry, but my english is very weak...![]()


Reply With Quote

Bookmarks