<%
dim str
dim strArray
Dim i
str = replace(request.form("Keywords"),", "," ")
str = replace(str,","," ")
str = replace(str," "," ")
strArray = split(str, " ")
Dim StaticTestArray(5)
StaticTestArray(0) = "i"
StaticTestArray(1) = "me"
StaticTestArray(2) = "mine"
StaticTestArray(3) = "my"
StaticTestArray(4) = "you"
StaticTestArray(5) = "yours"
response.write ""
for i = 0 to Ubound(strArray)
if testString(statictestarray, strarray(i)) then
Response.Write "| " & trim(strArray(i)) & " | = | fail |
"
else
Response.Write "| " & trim(strArray(i)) & " | = | pass |
"
end if
next
response.write "
"
function TestString(matchArray, str)
dim i
for i = 0 to uBound(matchArray)
if lcase(StaticTestArray(i)) = lcase(str) then
TestString=true
exit function
end if
next
end function
%>
Invalid strings include the following: "I", "me", "mine", "my", "you", and "yours".