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 forfields and WebCat commands. Imagine you name a field of your form datefor the birthday. If you ask for this field on the following page, youwrite 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 namingconvention, you will never make a similar mistake. That is why you seeoften names like [_date], [v.email] or similar in the code of other people.Peter__________________________________________Peter Ostry - po@ostry.com - www.ostry.comOstry & Partner - Ostry Internet SolutionsAuhofstrasse 29 A-1130 Vienna Austriafon ++43-1-8777454 fax ++43-1-8777454-21
Associated Messages, from the most recent to the oldest:
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 forfields and WebCat commands. Imagine you name a field of your form datefor the birthday. If you ask for this field on the following page, youwrite 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 namingconvention, you will never make a similar mistake. That is why you seeoften names like [_date], [v.email] or similar in the code of other people.Peter__________________________________________Peter Ostry - po@ostry.com - www.ostry.comOstry & Partner - Ostry Internet SolutionsAuhofstrasse 29 A-1130 Vienna Austriafon ++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:
RePost: NAT and the CART (1999)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
WebCatalog 2.0 b 15 mac (1997)
email stoped (2003)
pc (1997)
error (2000)
Fulfillment emails not emailing after upgrade (2002)
RE: Jimmy Houssen (1998)
Protect (1997)
Catalogs and W* (1996)
WebCat2b13MacPlugIn - more [date] problems (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
WebTen? (1997)
Emailer setup (1997)
Re:quit command on NT (1997)
'RequiredField' Question (1998)
[WebDNA] i wish we could require one *amongst of a collection* of search comparisons/params (2011)
[convertchars] (2000)
Altivec (Velocity engine) (2000)
creative use of webcatalog (1998)