一个函数。出错了,请帮忙看下
自己做个简单的站内搜索,用到一个函数,函数的目的在于区别集中情况给出判断,但是提示有错,请教各位看看
<%
Function is_right()
keywords_s=request.form("keywords_s")
response.write keywords_s
select case keywords_s
case ">":call noway()
case "<":call noway()
case "<br>":call noway()
case " ":call noway()
case "<br/>":call noway()
case "":call noway()
end select
Sub Noway()
response.write"<script language=javascript>alert('输入不合法');history.go(-1);</script>"
end Sub
end Function
%>
..............................
调用函数的部分在这里
<form name="form1" id="form1" method="post" action="show_search.asp">
<input name="keywords_s" type="text" id="keywords_s" />
<input type="submit" name="Submit" value="search" onclick="return is_right();"/>
</form>