Re: _ in front of field name

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18912
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.So once again I'd like to petition for a [today] instead of the current [date] function. then, [showif [date]=[today]] would work really nicely (and be easy to understand)! Brian B. Burton BOFH - Department of Redundancy Department --------------------------------------------------------------- MMT Solutions - Specializing in Online Shopping Solutions 973-808-8644 http://www.safecommerce.comAre you a Web Programmer? I am today. 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.So once again I'd like to petition for a [today] instead of the current [date] function. then, [showif [date]=[today]] would work really nicely (and be easy to understand)! Brian B. Burton BOFH - Department of Redundancy Department --------------------------------------------------------------- MMT Solutions - Specializing in Online Shopping Solutions 973-808-8644 http://www.safecommerce.comAre you a Web Programmer? I am today. Brian B. Burton

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:

More than one db with the same namn (was: WC2f3) (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) quantity minimum problem (1997) Happy New year (2004) I've been framed by webcatalog! Does anyone know the way out? (2000) creative use of webcatalog (1998) RE: [WebDNA] WSDL Wizzard (2009) question: webdelivery folder and file (1997) Sorting by date (1997) problems with 2 tags (1997) WebCat2b15MacPlugin - showing [math] (1997) Displaying text and populating form fields (again) (2005) Announcement-WebCatalog 2.0 Released (1997) Text Manipulation Not Sticking - NEVER MIND (2002) Price override (2004) SQL Connections (2004) Search in 2 or more catalogs (1997) WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998) Hiring: Web programmer in Seattle area (2000) Running _every_ page through WebCat ? (1997)