RE: [PHP] How to get the current date and time in to the input field of a form with running time.

From: Date: Fri, 27 Jul 2001 04:02:33 +0000
Subject: RE: [PHP] How to get the current date and time in to the input field of a form with running time.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59870@lists.php.net to get a copy of this message
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:balaji.ankem@wipro.com] Sent: Thursday, July 26, 2001 8:56 PM To: php-general@lists.php.net 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

« previous php.general (#59870) next »