naizgai Posted November 2, 2010 Share Posted November 2, 2010 hello all. i'm building a page involving a javascript alarm. it works perfectly but the problem is: once the page is refreshed, all set parameters on the alarm code refreshes, and such does not execute. Please how to i get the alarm system to remain active despite page refreshes. Thank you all. Quote Link to comment https://forums.phpfreaks.com/topic/217538-need-help-with-javascript-and-php-code/ Share on other sites More sharing options...
Adam Posted November 2, 2010 Share Posted November 2, 2010 You could set a PHP session variable to store the time the counter was started, and the time it needs to go off. Then just pass those values 'dynamically' into the JavaScript to configure it correctly.. Quote Link to comment https://forums.phpfreaks.com/topic/217538-need-help-with-javascript-and-php-code/#findComment-1129404 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.