Re: Stroring html form settings - Mailing list pgsql-general

From Reece Hart
Subject Re: Stroring html form settings
Date
Msg-id 1222448507.6516.38.camel@snafu
Whole thread Raw
In response to Re: Stroring html form settings  (Dianne Yumul <dianne@wellsgaming.com>)
Responses Re: Stroring html form settings
List pgsql-general
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.

Diane-

Would an EAV model work? I'm thinking something like <form,field,value>. For example:
formA,ckbox1,true
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
http://www.postgresql.org/docs/8.3/static/hstore.html

Do either of those suffice?

-Reece

-- 
Reece Hart, http://harts.net/reece/, GPG:0x25EC91A0

pgsql-general by date:

Previous
From: Martin Gainty
Date:
Subject: Re: Stroring html form settings
Next
From: Dianne Yumul
Date:
Subject: Re: Stroring html form settings