tinnumaverick Posted October 28, 2010 Share Posted October 28, 2010 <?php echo "<html>"; echo "<head></head>"; echo "<body>"; echo " <form method=\"post\" action=\"http://testrun.libst.siu.edu/drupal/tagdublincore\"> "; echo "<input name=filename value=$name >"; echo "<input type=submit value=\"next\"></form >"; echo "</body>"; echo "</html>"; } ?> <html> <head> </head> <body> <h2>Upload Image</h2> <form enctype="multipart/form-data" method="post" action="http://testrun.libst.siu.edu/drupal/sep1"> <input type="file" name="fileToUpload" /> </br> // I WANT TO HIDE THIS SUBMIT BUTTON AFTER CLICKING <input type="submit" name="submit" value="Upload File" /> </form> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/217146-how-to-hide-submit-button-after-click/ Share on other sites More sharing options...
akitchin Posted October 28, 2010 Share Posted October 28, 2010 please use code tags in the future. also, even though your question is simple, it would be helpful to actually WRITE the question into the post, rather than just posting your code and assuming everyone knows what you want to achieve. i'm moving this to the javascript board because this is more of a javascript question. look into the "onClick" event and the "disabled" attribute of the input element. Quote Link to comment https://forums.phpfreaks.com/topic/217146-how-to-hide-submit-button-after-click/#findComment-1127774 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.