PDA

View Full Version : Live date/time in textfield



john010117
Jan 8th, 2007, 12:24 AM
Hi,
How do you put that live date/time script into a textfield for a form? So whenever I load that page, the live time will be in the textfield. And when I press submit, it'll submit the time correctly.

harbingerOTV
Jan 8th, 2007, 01:35 AM
asp:

<%response.write(date())%><%response.write(time())%>

php

http://us2.php.net/date

javascript not sure. all depends ont eh language you want to use.

if you want it show up in the text area then you can aply that to the value of the textarea in your form. if you want it to be in the message sent you need to send that int he processing as well