[FONT=Tahoma]I am attempting a small project and I was wondering if anybody had any advice. I want to create a feeback form that can be easily plugged into any website.
The idea is to have some PHP code that can be configured easily by changing a few settings and plugged into any site.
(for the time being all these will send the contents to an email address but i may add options for that later)
For example user 1 only wants a name and comment field.
User 2 of the form wants a Name, email, comment field and a drop down menu with a section of x number of things.
So that's the scenario (btw if you've taken the time to read even this far thanks 🙂
I have been racking my mind on ways to solve this problem. First i thought the person could manually put the names into variables of all the form objects however I thought this could be a bit of a hassle. Is it possible to do a search for all the fields from a specific form name? is this a security issue?
My second thought would be to try and take a bit of an OOP approach. You could create a new form phpobject and then add fields etc. to it... the information for this could be stored fairly easily in maybe a con-fig file. At least this way it wouldn't require them to make the form in HTML and then recreate the data so PHP can see it.
That's my first two initial thoughts... any suggestions on them would be greatly appreciated!
Thanks![/FONT]
**Update : retarded grammer. Oops