Jump to content

how to hide submit button after click


tinnumaverick

Recommended Posts

<?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>

 

:confused:

Link to comment
https://forums.phpfreaks.com/topic/217146-how-to-hide-submit-button-after-click/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.