Oh, and just one note to the original poster. If you are testing for an "empty" value, and a user enters nothing but all spaces and you consider that to be "empty", then you could try to "trim()" the value. You may find this useful: http://snipurl.com/6q HTH, Shanx