bengaltgrs Posted December 1, 2006 Share Posted December 1, 2006 I have a javascript timer going on a page and I want the time to be saved if the page is refreshed. The way it is setup now, the timer is reset when the page is refreshed. I'm not sure if this is something I should use PHP or javascript for. Would I have to save it to a file and reload it or can I just pass it between the page? Link to comment https://forums.phpfreaks.com/topic/29044-pass-data-from-page-to-refreshed-page/ Share on other sites More sharing options...
fert Posted December 1, 2006 Share Posted December 1, 2006 to pass the data between pages you will need to submit the form Link to comment https://forums.phpfreaks.com/topic/29044-pass-data-from-page-to-refreshed-page/#findComment-133078 Share on other sites More sharing options...
marcus Posted December 1, 2006 Share Posted December 1, 2006 No you do not.He wants the time to be saved one the time the page is refreshed. Link to comment https://forums.phpfreaks.com/topic/29044-pass-data-from-page-to-refreshed-page/#findComment-133079 Share on other sites More sharing options...
bengaltgrs Posted December 1, 2006 Author Share Posted December 1, 2006 I tried submitting the form when the onUnload event was triggered but that didnt seem to work. Which was odd because if I called the alert function when the onUnload even was triggered, it would go off when I refreshed the page. Link to comment https://forums.phpfreaks.com/topic/29044-pass-data-from-page-to-refreshed-page/#findComment-133084 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.