Hi again,
I am using in cases, the same form template for adding registers, but also for editing an existing one !.
When i have a date field, the date formating comes very handy like:
<input name="where[fecha_doc]" value="[blk2.fecha_doc;noerr;frm='dd/mm/yyyy']" size="10">
|
When the form is filled incorrectly, i would like to show the same form again, using the POST variables received to fill the form values again - so the user can see what she/he had entered before.
However..
it doesn't work for me on the date fields :( .
When i had entered in the form initially: '19/07/2010'
it will show me (for the re-try): 31/12/1969,
i can simulate the same effect adding a line in tbs_us_examples_prmfrm.php:
$my_form_date_str = '19/07/2010';
and in tbs_us_examples_prmfrm.htm:
<tr class="back-special2">
<td>dd/mm/yyyy</td>
<td>my date: [var.my_form_date_str;frm='dd/mm/yyyy']</td>
</tr>
|
I would like to keep using the TBS-formating option, to make sure the date is interpreted correctly.
Is there a way to use the POST (string)-variable again direcly, or would i have to think of a format conversion of this variable before merging it again ?
Thanks
Klemens