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
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
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 FAQthen 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
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
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
This topic is locked and no more replies can be posted.
