Hi and Thanks for your help!
I am working on this form. One of the text field I am using is for a Special Promotion Code. If the user enters the incorrect Promotion Code it should generate an error message. In the future this text field may have at least 10 valid promotion codes to this field. Currently I have only two valid promotion codes to the the text field. The code I created will only validate the first on (06teach)instead of both. Here's my code.
If Request.Form("code") <> "" Then
If not Trim(Request.Form("code")) = "06teach" Then
errs = addError("code", "(Not a Valid Special Promotion Code)")
ElseIf not Trim(Request.Form("code")) = "06med" Then
errs = addError("code", "(Not a Valid Special Promotion Code)")
End If
End If
Do you what I am missing?
Thanks Again for your help!
I am working on this form. One of the text field I am using is for a Special Promotion Code. If the user enters the incorrect Promotion Code it should generate an error message. In the future this text field may have at least 10 valid promotion codes to this field. Currently I have only two valid promotion codes to the the text field. The code I created will only validate the first on (06teach)instead of both. Here's my code.
If Request.Form("code") <> "" Then
If not Trim(Request.Form("code")) = "06teach" Then
errs = addError("code", "(Not a Valid Special Promotion Code)")
ElseIf not Trim(Request.Form("code")) = "06med" Then
errs = addError("code", "(Not a Valid Special Promotion Code)")
End If
End If
Do you what I am missing?
Thanks Again for your help!