[Typo3] How to build a complex form?

Derek digitalfan at earthlink.net
Sat Jun 18 12:02:10 CEST 2005


Nick,

To allow a front-end user to edit the data they submitted, just have the
extension check to see if they have submitted a form already. If they have,
pre-populate the form fields with this data.

You will need to either send the front end user id as a hidden value in the
form (so it gets saved to the database), or modify the extension so the
mailformplus table has a frontenduserid field to identify the FE user who
submit it. All the form field data seems to be saved in a
semicolon-delimited list in the database... You will need to use the explode
function to separate this data so you can pre-populate the form data if the
user had already submit a form.

I may be over-simplifying things, and it may end up being a more complex
task than I have mentioned. But hopefully this gives you somewhere to start.

Not sure about how to make this data searchable... Probably will need to
create a new extension which queries the mailformplus table. You could look
at search functionality in other extensions to see how to create this on
your own extension.

Derek

-- 
I am using the free version of SPAMfighter for private users.
It has removed 46333 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!



More information about the TYPO3-english mailing list