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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -