Categories > TinyButStrong general >

Forms

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Justin
Date: 2006-06-05
Time: 12:26

Forms

Hello, I just download this template engine and I am starting to learn it.

At work I do a lot of php interaction with forms. Is there any easy way to use the template engine to edit forms, i.e. populate a textbox from mysql and then when the user edits the textbox hits submit, store the new value in the textbox back into the mysql database?

Provide code examples please.

Also my second request, is I have to do sorting by headers a lot. Example I have a table:

name        city                state
joe blow     los angeles     ca
jane blow   san diego       ca

name, city, and state are all hyperlinks when clicked sort the mysql results accordingly. Is there any easy way to do this through this template engine as well? Again code examples would be great. Thanks.

-- Justin
By: Skrol29
Date: 2006-06-06
Time: 00:37

Re: Forms

Hello Justin,

About geting and recalling entered data for HTML forms, you'll found some ways to do that with the two downloadable applications (at the download page). There is also a small example at the Example page.

For the sorting feature, there is nothing ready, but it is not a big deal to build. A simple link on the field's names which defines the field to sort, retrieve the info at the PHP side.