This topic is locked

Enquiry form Permissions

2/10/2009 10:04:36 AM
PHPRunner General questions
N
nickc25 author

Hi
My site requires an enquiry form for each individual villa. I submitted a thread a few days ago but I have since learnt how to put a form onto the site. What I need to do now is enable it so that people do not need to be logged into send the form and that each form goes to a specific user, that user can then see all the forms submitted to them.
My site is a villa rentals site, owners advertise their villa and people enquire with an enquiry form, currently it is cgi form on a html page.
I have setup the permissions so that people can send forms without having to be logged in, so that issue is sorted out.
The next issue is each villa owner will have a login for a villa owner group with set permissions, I have set the permissions as dynamic.
Each villa owner will have an enquiry form on their advert. So when someone sends an enquiry, the form needs to go to that specific villa owner. Who then can see all the forms that have been submitted to them in the past (and admin can see all). They will not be able to edit them or delete them. Also an email will need to be sent to each individual owner to alert them that they have an enquiry. How is all this done?
I am currently getting an error for admin group only which is:
<<< Record was NOT added >>>
Duplicate entry '2' for key 1
I do not get this error when not logged in, so there must be something wrong somewhere...
Thanks again
Nick