Re: Stroring html form settings

From: Reece Hart <reece(at)harts(dot)net>
To: Dianne Yumul <dianne(at)wellsgaming(dot)com>
Cc: PostgreSQL List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Stroring html form settings
Date: 2008-09-26 17:01:47
Message-ID: 1222448507.6516.38.camel@snafu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message furlani.francesco 2008-09-26 17:17:06 Slony Problem
Previous Message Martin Gainty 2008-09-26 16:55:34 Re: Stroring html form settings