Re: Forms to db's and back (was Re: Displaying text and

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61263
interpreted = N
texte = Bill, Can you elaborate on your grooming technique a little bit? Not sure I understand what you mean about holding meta data or how you use it. Thanks, Terry At 2:00 AM -0800 2/28/05, devaulw@onebox.com wrote: > >I have implemented a practice where I look at all user data, check >itwith a function, and return it to the user for checking if there >areerrors. It gets parked in a table in revised or accepted form >before Ireturn it to the user with errors or store it in the >database. > >Basically it goes: >1. Set up a table with meta data about the on page variables >(maxlength, accept if empty, characters?). >2. If no user input, use meta data to create the form. >3. If any user input, groom it with functions while storing errors >andrevised data (trim data for length, date format, illegal >characters) ina table. >4. If errors, return revised data from the table to the user >forcorrection, else accept the data and notify user. > >This means I am unlikely to populate a form field from a form >variableever because everything will come from the table after >having beengroomed. > >I've got something that has been slightly factored and clean that I >canroll up into a tool to show some code on this. ------------------------------------------------------------- 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:

    
Bill, Can you elaborate on your grooming technique a little bit? Not sure I understand what you mean about holding meta data or how you use it. Thanks, Terry At 2:00 AM -0800 2/28/05, devaulw@onebox.com wrote: > >I have implemented a practice where I look at all user data, check >itwith a function, and return it to the user for checking if there >areerrors. It gets parked in a table in revised or accepted form >before Ireturn it to the user with errors or store it in the >database. > >Basically it goes: >1. Set up a table with meta data about the on page variables >(maxlength, accept if empty, characters?). >2. If no user input, use meta data to create the form. >3. If any user input, groom it with functions while storing errors >andrevised data (trim data for length, date format, illegal >characters) ina table. >4. If errors, return revised data from the table to the user >forcorrection, else accept the data and notify user. > >This means I am unlikely to populate a form field from a form >variableever because everything will come from the table after >having beengroomed. > >I've got something that has been slightly factored and clean that I >canroll up into a tool to show some code on this. ------------------------------------------------------------- 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:

Re:2nd WebCatalog2 Feature Request (1996) Universal root for WC errors? (1997) RE: E-mailer error codes (1997) Share cost of training videos! (1998) WebCat NT v. Mac (1997) Using Cookie for client specific info? (1997) garbage on page (2000) WebDNA release (2005) WC Database Format (1997) Up and running ... at last !! (1997) Looking for a host (1997) Help! WebCat2 bug (1997) Blog solution (2006) [WebDNA] WebDNA & VPS (2009) Frames and WebCat (1997) different show next (1997) sendmail and accented characters (1998) Concatenating Form Variables (1998) Multiple shipping databases (1997) WebCatalog not running after upgrade (2000)