You are here: Re: Pulling in current date and time? « PHP Programming Language « IT news, forums, messages
Re: Pulling in current date and time?

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация