泣血求救,帮忙做一段ASP程序,半小时。。。

来源:百度知道 编辑:UC知道 时间:2024/06/21 07:47:12
我在上课,网页设计asp,老师让做一个网页,要求,输入学号、姓名、分数,验证是否有误。比如说验证分数,就要验证是否是数字,姓名只要验证不是数字就行了,分数验证是否是数字。半个小时。。速度。。邮箱1990days#163.com。。望大伙帮忙。。

<%
if request("style")="ck" then
name1=request.form("xm")
fs=request.form("fs")
if name1="" then
response.write "<script>alert('您的姓名不可能没有吧?!');history.back(-1);</script>"
response.end
end if
if fs="" then
response.write "<script>alert('您的分数不可能没有吧?!');history.back(-1);</script>"
response.end
end if
if isnumeric(name1)=true then
response.write "<script>alert('您的姓名不可能是数字吧?!');history.back(-1);</script>"
response.end
end if
if isnumeric(fs)=false then
response.write "<script>alert('您的成绩居然不是数字?!');history.back(-1);</script>"
response.end
end if
end if
%>
<form id="form1" name="form1" method="post" action="1.asp?style=ck">