Thanks Cricket,
I tried the lot, debugging $this-data as well, but even when it
wasn't selecting the date from $this-data the form would still save
correctly - so the field had to have been correct.
Oh well, hopefully it's never an issue again. It's only a few more
lines of code than I would
On Fri, Nov 5, 2010 at 12:33 AM, Adam adamcbre...@gmail.com wrote:
Thanks Paul,
I really wanted it in a standard, form-helper format - - MM - DD
drop-downs.
I spent more time on it than i wanted to so in the end I just exploded
the date value from the DB and manually assigned them each
Exactly how are you wanting the date field to appear in the form? text
field, split into select fields etc.
The form helper should do all this for you.
You may also find this bakery article of interest:
Thanks Paul,
I really wanted it in a standard, form-helper format - - MM - DD
drop-downs.
I spent more time on it than i wanted to so in the end I just exploded
the date value from the DB and manually assigned them each to day,
month and year form-inputs with their set values.
Like I said
I'm having trouble auto-filling the form input with the date value
that's already been saved in the database.
Simply, I've saved a selected date, but when I return to edit it, the
date defaults to today's date.
I've never had a problem with the auto-filling forms before, but for
some reason this