Forum Moderators: coopster

Message Too Old, No Replies

date auto increment

possible?

         

gswahla

4:32 pm on Jul 18, 2003 (gmt 0)

10+ Year Member



is it possible to have a form where the date is filled in everyday, and isnt changeable?

also can the format of the date you enter into forms be chaned. I dont much like the yyyy-mm-dd format, id much racther have the normal british dd-mm-yyyy as the value i have to fill into my forms..

jatar_k

5:01 pm on Jul 18, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



There are a bunch of PHP Date and Time functions [ca.php.net] available.

Take a read through them and see what you need. You could then output it as a hidden form element as well as showing it on the screen if you like.

gbaker123

10:19 pm on Jul 22, 2003 (gmt 0)

10+ Year Member



One way to do it is with a hidden field. Output it to the person entering the form like you would normally and store it in a hidden field. That way it is always current and gets stored the way you want.

Hope this helps,
George