php - how to update GUI with button click -
i'm making web application how can add update button in admin panel update button replace gui or replace whole html file example
<?php if ( admin clicked update button) !== false) { replace login.html https://github.com/new-version }
can me idea ?
you can in html on click when user presses button
<button onclick="location.href='https://github.com/new-version'">update</button>
ok sorry try
<?php unlink("login.html"); copy("https://github.com/new-version/login.html", "login.html");
Comments
Post a Comment