Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.