I am currently working on a project which allows users to design a small web form. I give them many options such as font style, bold, underline, colors, borders, etc and all changes made are shown in the form preview immediately using javascript.
To give you a better idea of what this does I would say it is a simpler version of the form builders that aweber and getresponse have.
One problem I am face with is because many of the options are done purely through jquery/javacript: color pickers, bold/underline options, border styles, etc, I am wondering what would be the best way to save all of these options to the database once the design is complete?
I have started creating hidden inputs for all of these options and updating the values of these hidden fields when a design option is changed. Then saving all of the options using a normal form submit after the design is finished but I think surely there must be a better or more efficient way to do this?
Does anyone have any opinions on what would be the best/most efficient way to achieve what I am trying to do?
Thanks
Prior to submitting the form, could you compile all the options to a string value describing the CSS style and save that as 1 field in your table?