Friday, September 26, 2008

Re: [GENERAL] Stroring html form settings

On Fri, 2008-09-26 at 09:23 -0700, Dianne Yumul wrote:
If the structure of each report did not differ this would work great 
but unfortunately it does.


Would an EAV model work? I'm thinking something like <form,field,value>. For example:
formA,input1,initial value
formB,textarea1,enter your long comment here

You could easily extend this to <user,form,field,value>, or normalize it as you see fit.

Another possibility is to use hstore hashes for form fields/values. See

Do either of those suffice?


 --  Reece Hart,, GPG:0x25EC91A0 

No comments: