Pulling in current date and time?
- From: paul814@xxxxxxxxxx
- Date: Tue, 30 Oct 2007 08:45:31 -0700
I would like to populate the date text box on my html form with the
current date and time. here is what I have now:
How could I update this to automatically display the date and time in
this editorialdate field? I want it to be formatted correctly for
mySql DATETIME field.
<html>
<HEAD>
<TITLE>Daily Production Report / Editorial</TITLE>
</HEAD>
<BODY>
<form method="POST" action="editorial-report.php">
<p><img src="http://pooch/assets/ETN_intranet_r2_c2.jpg"></p>
Please enter report data and press the <b>SUBMIT</b> button
<br>
Date:
<br>
<input type="text" name="editorialDate" size="15" maxlength="25">
</BODY>
</html>
.
- Follow-Ups:
- Re: Pulling in current date and time?
- From: Good Man
- Re: Pulling in current date and time?
- Prev by Date: Re: Best solution to tedious form validation?
- Next by Date: HTML Forms, ONSUBMIT, PHP Functions
- Previous by thread: making this look readable?
- Next by thread: Re: Pulling in current date and time?
- Index(es):