Jump to content

Recommended Posts

how would you create a date and time format in your page?

how would you make this date and time not to change back to the previous time when you click the "BACK BUTTON" ?

Meaning if you have a time like this: 13 of August, 2007 08:11 PM  in one of your pages

then when you continued it to the "next page" you will have assuming that time changed to this, 13 of August, 2007 08:12 PM

and i forgot to do something in the previous page, the date and time format returns to the old time stating like this: 13 of August, 2007 08:11 PM 

when you could have: 13 of August, 2007 08:12 PM the updated time. how would you to that not having the old time or previous time in all of your web pages withour returning to the old time? I do hope you undesrtood what i meant? thank you

Link to comment
https://forums.phpfreaks.com/topic/65434-date/
Share on other sites

Problem here is when the user hits the back button it refreshed a page that is stored in cache. It doesn't reload the page, hence why the time is the "old" time. In fact, the time is exactly what time the page was loaded the first time. The only thing I can think of is to create navigation buttons on your page, so that when someone presses your back button, it actually reloads the page, creating a new time. I'm not sure of another way to fix this, but I'm sure some of these guys might have an idea.

Link to comment
https://forums.phpfreaks.com/topic/65434-date/#findComment-326736
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.