View Single Post
Old 01-23-2013, 11:12 PM   PM User | #4
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,556
Thanks: 62
Thanked 4,055 Times in 4,024 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
By the by, testing for opName == "" is kind of pointless.

A user could enter a single space, just for example, and it won't == "".

If you are going to bother to make a test, make it a useful one.

There are tons of examples of useful form validation in this very forum. Do a quick search.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote