ZmrAbdulla
Technical User
I am trying to create an xml file through the details entered in the fields in an HTML page using vbscript. It works as I required with a small problem.
If I execute an HTA file then the errorchecking is done, not when the script is executed from an html page.
Error cheking code is below
Is there anything that I am missing?
Zameer Abdulla
If I execute an HTA file then the errorchecking is done, not when the script is executed from an html page.
Error cheking code is below
Code:
If Len(txtName.Value)=0 then
MsgBox "Please enter your name",0,"Error"
ElseIf Len(txtCont.Value)=0 then
MsgBox "Please enter a contact number",0,"Error"
ElseIf Len(txtDept.Value)=0 then
MsgBox "Please enter the department name",0,"Error"
ElseIf len(txtMsg.Value)=0 then
MsgBox "Please enter the message",0,"Error"
else
' Do stuff
End If
Zameer Abdulla