You'll need javascript. Since you only hit the server once you can't
continuosly update the time from the server (php).  Search for a javascript,
there are plenty that can do this.

Regards,
Johnny Nguyen
  -----Original Message-----
  From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, July 26, 2001 8:56 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] How to get the current date and time in to the input field
of a form with running time.


  Hi, dear friends,
       How can i get the current date and time in the following input field.

  <form name="addinv" >

            DATE:      <input type="text" name="in_date" value="//Here i
want to get the current date an time ..time should dynamically change//">

          STATUS:   <input type="text" name="in_status" value="">
             <input type="button" Value="ADD" OnClick="check();">
  </form>


  Thanks in advance.

  Regards
  -Balaji

Reply via email to