Code to create list of completed forms based on User id?
Posted: Sat Jan 26, 2008 9:07 am
Using Joomla! 1.5...
I'm planning to use Chronoforms to collect data for a research project, creating several instruments as separate forms. I am including user id as one of the fields in each of the forms.
What I want to be able to do is create a list of the forms that have already been submitted by the logged in user - so I need to:
My plan is to use Jumi or IncludePHP to just put this in an article.
Can someone help me work on the code needed to accomplish this?
Thanks,
Scott
I'm planning to use Chronoforms to collect data for a research project, creating several instruments as separate forms. I am including user id as one of the fields in each of the forms.
What I want to be able to do is create a list of the forms that have already been submitted by the logged in user - so I need to:
- get the user id
- query the database to check all of the tables of the forms to see if the user id is there
- f it is, to then display the form name (which will be in another field of each form's table)
- if it isn't, then to skip it
My plan is to use Jumi or IncludePHP to just put this in an article.
Can someone help me work on the code needed to accomplish this?
Thanks,
Scott