(Solved) Just want the today date in a field

fab4_33 13 Sep, 2009
Hello

i'm new with chronoform, i'm still testing it before make a subscription

I think my issue is simple, but I can't resolve it in spite of searching through the forum, but maybe be I miss the answer.

I just want to have the date when a user fill the form

In the wizard I add an hidden field named 'date' and put in the value field
<?php echo date('Y-m-d H:i:s'); ?>
--> see in the FAQ

then I create the table, and change the Type by 'Datetime'

When I fill the form, I have only'0000-00-00 00:00:00'

I'm doing something wrong

Thanks for your help

Dimitri
GreyHead 13 Sep, 2009
Hi Dimitri,

Where do you want to use the date? ChronoForms will automatically add a date to any Database records saved.

The code you used should add a date to the $_POST array, it's impossible to say what the problem is without seeing the html for the input and the code you are using to output it.

Bob
fab4_33 13 Sep, 2009
hello Greyhead

it was so simple

In
Extra dataview columns fields names:

I add recordtime, yes you're right the fieldexist already

Now I have to try with the Connectivity if it s work

Thanks again

And well done with with that component,
This topic is locked and no more replies can be posted.