Re: Forms to db's and back

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61272
interpreted = N
texte = Bill, Yes, I check my data for empty fields, formatting, etc., but I hard code my validation at the top of my pages, and display the form again if there's a problem. For instance, I wrote one that checks to make sure the date is legal; i.e., not Feb 30, for instance. Nothing goes into the DB until it passes validation. I just didn't see how tables come into play for you. Do you mean that your table is an include file with validation routines as data that get pulled out or something? That's the part that lost me. Terry At 2:01 AM -0800 3/3/05, devaulw wrote: >scripting). The simple routine I have worked out seems to limit this problem. >The meta data is basically a table that tells the script what >validation routines are to be run, how long or short the data can >be, how it should be displayed in the form (text, hidden, textarea, >select) and things like that. I understand that I could handcode >the pages, but that is too much work since I can have meta data that >will do the work for me. By making changes in the table, the script >generates the right form and options. I use Excel to edit the >table. Every table makes a new editing page for a database. That is >far easier than handcoding. ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Forms to db's and back ( devaulw@onebox.com 2005)
  2. Re: Forms to db's and back ( Terry Wilson 2005)
  3. Re: Forms to db's and back (was Re: Displaying text and ( devaulw@onebox.com 2005)
  4. Re: Forms to db's and back (was Re: Displaying text and ( Terry Wilson 2005)
  5. Forms to db's and back (was Re: Displaying text and populating ( William DeVaul 2005)
Bill, Yes, I check my data for empty fields, formatting, etc., but I hard code my validation at the top of my pages, and display the form again if there's a problem. For instance, I wrote one that checks to make sure the date is legal; i.e., not Feb 30, for instance. Nothing goes into the DB until it passes validation. I just didn't see how tables come into play for you. Do you mean that your table is an include file with validation routines as data that get pulled out or something? That's the part that lost me. Terry At 2:01 AM -0800 3/3/05, devaulw wrote: >scripting). The simple routine I have worked out seems to limit this problem. >The meta data is basically a table that tells the script what >validation routines are to be run, how long or short the data can >be, how it should be displayed in the form (text, hidden, textarea, >select) and things like that. I understand that I could handcode >the pages, but that is too much work since I can have meta data that >will do the work for me. By making changes in the table, the script >generates the right form and options. I use Excel to edit the >table. Every table makes a new editing page for a database. That is >far easier than handcoding. ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Terry Wilson

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

using showpage and showcart commands (1996) Looping control (1997) Dates - Search and Sorting (1999) A few questions. . . (1997) Showif Error Generated... (2003) Adding content advice needed (1998) Math function in Formula.db (1997) [ShowCart] and GET vs. POST (1997) typhoon... (1997) Bug or syntax error on my part? (1997) Location of Browser Info.txt file (1997) RE: Re:Signal Raised (1997) More on the email templates (1997) Webcat listserver - WAS - webcat method for waitingspecific amount of time? (2000) $append (1998) searching for items that begin with a number (2004) OBDC Support (1997) Convert Chars Q (2000) Hiding HTML and page breaks (1997) WebCat2b12 CGI Mac -- Problems propagating the cart through (1997)