Matar Posted May 7, 2006 Share Posted May 7, 2006 hi i write a code thats check if the dropdown menu valuse yes or no if no then no problem if the next field is empty if yes then the next field value must be not empty and the code i wrote doest't work this is my code are u marrid <%response.write"<select name = s >"%> <%response.write"<option>yes</option>"%> <%response.write"<option>no</option>"%> <%response.write"</select>"%> ShowFormField("Number of children")the check<%Function ValidateField(sFieldValue, sFieldType) Dim bFieldIsOkay bFieldIsOkay = True Select Case LCase(sFieldType) Case "s" If Not IsNumeric(sFieldValue) Then Case "مصدر بطاقة المؤن" If trim(Len(Number of children)) = 0 Then bFieldIsOkay = False End Ifwhat should the code will be ??????? Link to comment Share on other sites More sharing options...
justsomeguy Posted May 8, 2006 Share Posted May 8, 2006 Your selectcase isn't formatted correctly. Take a look at this reference:http://devguru.com/technologies/vbscript/14177.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now