longmatch
Programmer
- Nov 1, 2001
- 406
Dear All:
I would like to validate user input when "submit" button is clicked. I tried to use following syntax to test whether this field is empty or not. Unfortunately, the msgbox "sex can not be blank" always poped out even though this field is not blank? I do not know why?
Thanks
if document.ProcedureData.sex.value = "" then
msgbox "Sex can not be blank"
validation = false
else
validation = true
end if
I would like to validate user input when "submit" button is clicked. I tried to use following syntax to test whether this field is empty or not. Unfortunately, the msgbox "sex can not be blank" always poped out even though this field is not blank? I do not know why?
Thanks
if document.ProcedureData.sex.value = "" then
msgbox "Sex can not be blank"
validation = false
else
validation = true
end if