Hi,
my job has turned out to become more and more about making tedious registration forms for whatever data in a mysql database, editing it and of course deleting it.
As of now i've made a set of functions to help me check for valid input and all that, but still I find myself having to click together the actual form with the right input boxes and so on, maybe fill a select box with some data etc.
Lately i've been spending alot of time thinking about an easier way of accomplishing this...
I was thinking about creating a php class where I simply wrote something like:
$myRegForm->SetDBTable('myTable');
//AddField ( Type, Static Text, DB Field )
$myRegForm->AddField('text','Company name:','myCompanyName');
Now the class would build the html form and if possible handle the submit process of the form, meaning actually insert the data into the database.
I got some ideas on how I would accomplish this, but it's going to be alot of challenges for sure, which is why I came here.
Basically my question is, has anyone ever seen something like this made already, so I don't re-invent the wheel so to speak?
In advance, cheers.