A textbox that keeps track of time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpmel
    New Member
    • Oct 2007
    • 69

    A textbox that keeps track of time

    Hi guys,

    I wanted a text box that keeps track of the current time in the format 09:23AM etc
    I know I have to use time() function but that would only give you the current time when the page was loaded. I wanted to know if there was a way to get the text box to change the time when the time changes every minute.
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Originally posted by phpmel
    Hi guys,

    I wanted a text box that keeps track of the current time in the format 09:23AM etc
    I know I have to use time() function but that would only give you the current time when the page was loaded. I wanted to know if there was a way to get the text box to change the time when the time changes every minute.
    Sounds like javascript is more suitable :)

    This is a pretty clock

    Comment

    Working...