Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Names on Forms


Message #1 by "Ray4020" <ray.langley@r...> on Wed, 6 Jun 2001 14:50:07
I have adopted the same naming convention I use in my VB applications.

Text boxes use a prefix of txt, list boxes use lst, etc...

So, a text box for the first name would be "txtFirstName".  A list box
of the states would be "lstState", so on and so on...

There are a ton of documented standards for naming things.

Likewise, if you use ASP or some such language, using the exact same
names except a different prefix.  So, a string variable for first name
would be "sFirstName" or "strFirstName".  An integer value for and
unique user ID might be "nUserID" or "intUserID".

hth

-----Original Message-----
From: Ken Schaefer [mailto:ken@a...]
Sent: Tuesday, June 26, 2001 11:35 PM
To: HTML Code Clinic
Subject: [html_code_clinic] Re: Names on Forms

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: "Marc Seyon" <seyon@d...>
:Subject: [html_code_clinic] Re: Names on Forms
:

: At 6/6/2001 02:50 PM, you wrote:
: >Is there any standards for field names on a form?
:
: Form field names should not comprise solely numeric characters or
start
: with a numeric character.
: -marc

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Why?!?

That seems like you're forcing some kind of order on the position of the
form field names.

Cheers
Ken




  Return to Index