Skip to content
Advertisement

PHP calling python script and button disappear after clicked in php

i have a python script, that can be called from PHP

start.php

JavaScript

how do I make the button disappear if the service is running already? or make a popup windows saying its already running when user tried to click again?

i have another php where it can check the service running or not

status.php

JavaScript

Advertisement

Answer

managed to disable the button by adding below code

JavaScript

maybe it will help someone else.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement