Hi everyone,
I have created a web page to grab an employeeID number. The employee numbers can have one of two formats:
1. 7 characters and start with an Alpha for permanent employees.
2. 6 characters and be numeric if a contractor
I'd like to know if there is a way in classic ASP to validate that the input meets either of these two patterns before submitting information to the page that will take action on it. It was suggested in the ASP forum that javascript is the only way to do it. I'm a VBScript guy and lost with JavaScript.
Can anyone offer any suggestions?
Currently my input box looks like this:
<INPUT TYPE="text" NAME="EmpID" VALUE='' size="20" color="white"></INPUT>
Any help is greatly appreciated.
I have created a web page to grab an employeeID number. The employee numbers can have one of two formats:
1. 7 characters and start with an Alpha for permanent employees.
2. 6 characters and be numeric if a contractor
I'd like to know if there is a way in classic ASP to validate that the input meets either of these two patterns before submitting information to the page that will take action on it. It was suggested in the ASP forum that javascript is the only way to do it. I'm a VBScript guy and lost with JavaScript.
Can anyone offer any suggestions?
Currently my input box looks like this:
<INPUT TYPE="text" NAME="EmpID" VALUE='' size="20" color="white"></INPUT>
Any help is greatly appreciated.