I am allowing users to create custom forms with any number of inputs and elements of their choosing. I then want the user to be able to save that form as a template of sorts so that other users could use that template to create their own custom form just like it.
There could be hundreds of different post types, each one with different elements etc.
What might be the best way to accomplish this in PHP and MySQL?
I am thinking of just storing the html of the custom form once a user has created it in the database. And so if another user wants to use that template, I'd just retrieve that html from the database and present it to the new user.
Is this the best way to do this? Many sites do similar things (Wufoo, for example), it just seems a little weird to me to store raw html like that in a database.