How do I enable a sumbit button after a php script ends?
For example:
In my index.php page I have a submit button who is disabled by default, and after a php script (script.php) ends I want to enabled it.
The idea sp far is put a boolean variable in the end of script.php, so when it ends I set it to true. But how do I continue check if the boolean variable changed to true? I’m guessing that we use ajax…I already know how to disable the html button.
At the end of script execution create a file and at the front-end, continously check if that file exists. This is how you do this in jQuery.