Ejemplo n.º 1
0
            form.myButton.disabled = true;
            form.myButton.value = "Please wait...";
            return true;
        }

        function resetForm(form) // Reset button clicked
        {
            form.myButton.disabled = false;
            form.myButton.value = "Submit";
        }

    </script>
</head>
<body>
<?php 
$gallery->showImages();
echo '<br>';
?>
<div class="form">
    <?php 
echo $gallery->msg;
?>
    <form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" enctype="multipart/form-data" method="post" onsubmit="return checkForm(this);">
        <input type="hidden" name="MAX_FILE_SIZE" value="7000000" />
        <input type="file" name="userImage" required/><br/>
        <input type="submit" name="myButton"/>
    </form>
</div>