-2
I have already researched here and other sites but I have not found an answer that applies correctly to my scenario. The idea is the following I have two pages one with a link and the other with a button a link calls a php page that runs a connection on a linux and within linux runs some scripts, until then everything ok. The page with the button has a form using the method post with blank action to call itself, inside this page I have an if that checks if the variable _POST is true if it connects in linux and runs another script. In both cases it is working perfectly, however when the user clicks the page starts to load and only after connecting to linux and running the script it shows the output on the screen, the browser starts to load right however some users who have no patience are clicking multiple times on the link and button.
My idea is as follows, when the user click on the link or the button need to remove or disable them from the page to prevent the user from clicking again.
Preferably I wanted to do this with javascript but if there is some other way that has the same result is also valid.
This would be the doubt, as I do to disable or remove the link and button of the page after the click of the user without interrupting the natural execution of the page?
cannot simply add the attribute "disabled" or the style "display:None" or "visibility: Hidden"?
– Ricardo Pontual