Hello,
My PHP knowledge is still not what it should be, so forgive me if these are dumb questions.
I am redoing an old site. The last time I didn't use what I would call best practices. This time I am using OOP and Savant2.
Something I do a lot of in this application is loop through database records and for each record add a text box to a form. Each text box can also have child records.
It looks like this:
item 1
subitem 1
subitem 2
item 2
subitem 1
item 3
etc....
What is the best way to do this (should I still use Savant for this and other simpler forms)? Also, what is the best practice for validating the form data?
Thanks for any help, I really appreciate it.
Thanks,
Nick