I have a specific requirement where my page refreshes after 2 seconds. I have used this code to achieve this functionality -
<?php
$page = $_SERVER['PHP_SELF'];
$sec = "2";
?>
<html>
<head>
<meta http-equiv="refresh" content="<?php echo $sec?>;URL='<?php echo $page?>'">
</head>
</html>
Now I require a button which changes the refresh time from 2 to lets say 10 seconds for a different functionality.
It would be of great help if someone suggests how I should achieve this. Thankyou