Posted by Good Man on 10/30/07 16:18
paul814@excite.com wrote in news:1193759131.795457.106780
@v3g2000hsg.googlegroups.com:
> 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>
You can start by reading a book, tutorial or the PHP online manual which
offers great assistance.
People of this newsgroup generously offer their time to assist people with
PHP problems.... they don't do your homework, projects, or anything else
that you personally need 'done'.
http://ca.php.net/manual/en/function.date.php
[Back to original message]
|