So every time a form is displayed, you are going to dynamically generate it from the database? How often does the form change?

Aaron

----- Original Message -----
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: CF-Talk
Sent: Wednesday, July 28, 2004 11:24 AM
Subject: Help! - Dynamically Generate Forms from SQL DB - Bad Idea?

Hello List -

I am looking to store information about variables nad form fields in a db to conditionally build html forms -

Has anyone stored the variable name, and the form type in a database - and built the form dynamically on the fly?

I can't seem to find any references to it and am thinking because it must be a bad idea.

Basically - store
name            |    type  |       state
LastName             text
LastName             text
HowToContact         radio         checked

Then build components that write the html form- ie -  if it's a radio button -
<cfoutput><input type="#type#" name="#VarName#" #state#></cfoutput>

Another purpose is - if I decide to do forms in Flash - perhaps I can have the database spit out an XML document to use to build the flash interface.

Perhaps have the DB spit out XML/ or another format to build PDF forms etc....

Too complex? Bad Idea - Any products already allowing this (NOT Hosted servies)

Thanks!
Jason
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to