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,TerryAt 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,TerryAt 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:
E-Mailer (WebCatb15acgiMac) (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
RE: OK, here goes... (1997)
Formulas.db + Users.db (1997)
syntax question, not in online refernce (1997)
international time (1997)
Re:Password Authentication - request example (1998)
form crasehes server (1997)
SQL Query with % (2007)
[protect admin] (1997)
Nesting format tags (1997)
BUG in WebCatalog 4.0.1 on Mac OSX (2000)
[TaxableTotal] - not working with AOL and IE (1997)
[WebDNA] Announcing the new features for the next WebDNA version (2015)
Roundup (2001)
Problems with [Search] param - Mac Plugin b15 (1997)
Donovans Theorem (2003)
Need help (1998)
Web Delivery First Time Setup Trouble (2000)
WC Bulletin Board Issue (2003)