Re: _ in front of field name

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18902
interpreted = N
texte = At 13:31 Uhr 15.07.1998, Sue Ann Sanders wrote: >What is the significance of a _ in front of the field names within a >form? I believe this was done automatically when I used the database >helper.?It is a good idea to have a naming convention to avoid equal names for fields and WebCat commands. Imagine you name a field of your form date for the birthday. If you ask for this field on the following page, you write for example: Since you are born on [date] you are too old... In this case WebCat will NOT insert the form field but todays date because [date] is a command!So, if you name all form fields and variables according to such a naming convention, you will never make a similar mistake. That is why you see often names like [_date], [v.email] or similar in the code of other people.Peter__________________________________________ Peter Ostry - po@ostry.com - www.ostry.com Ostry & Partner - Ostry Internet Solutions Auhofstrasse 29 A-1130 Vienna Austria fon ++43-1-8777454 fax ++43-1-8777454-21 Associated Messages, from the most recent to the oldest:

    
  1. Re: _ in front of field name (Kenneth Grome 1998)
  2. Re: _ in front of field name (Kenneth Grome 1998)
  3. Re: _ in front of field name (Peter Ostry 1998)
  4. Re: _ in front of field name (Brian B. Burton 1998)
  5. Re: _ in front of field name (John Hill 1998)
  6. Re: _ in front of field name (Sue Ann Sanders 1998)
  7. Re: _ in front of field name (Peter Ostry 1998)
  8. _ in front of field name (Sue Ann Sanders 1998)
At 13:31 Uhr 15.07.1998, Sue Ann Sanders wrote: >What is the significance of a _ in front of the field names within a >form? I believe this was done automatically when I used the database >helper.?It is a good idea to have a naming convention to avoid equal names for fields and WebCat commands. Imagine you name a field of your form date for the birthday. If you ask for this field on the following page, you write for example: Since you are born on [date] you are too old... In this case WebCat will NOT insert the form field but todays date because [date] is a command!So, if you name all form fields and variables according to such a naming convention, you will never make a similar mistake. That is why you see often names like [_date], [v.email] or similar in the code of other people.Peter__________________________________________ Peter Ostry - po@ostry.com - www.ostry.com Ostry & Partner - Ostry Internet Solutions Auhofstrasse 29 A-1130 Vienna Austria fon ++43-1-8777454 fax ++43-1-8777454-21 Peter Ostry

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:

WebCommerce: Folder organization ? (1997) Converting spaces to + in results list (SOLVED) (2000) [WebDNA] Installation for Linux Dummy.. (2013) Price and Formula.db (2002) emailer setup (1997) Webdna 6 and Fedora (2004) Hairy Shipping Monster (2006) Showif/hideif within Javascript (2004) WCS Newbie question (1997) Re:Email (1998) cookie length (1998) Maximum characters in header? (1999) OT (maybe) Setting up local (non internet) test computers (2000) Globals Problem and now can't close databases (2003) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Help formatting search results w/ table (1997) credit card (1997) looping table rows (1999) [WebDNA] showif with empty variable (2015) Looking up two prices in database? (1997)