| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 792 人关注过本帖
标题:帮个忙啊!!!
只看楼主 加入收藏
fjfj1212
Rank: 1
等 级:新手上路
帖 子:113
专家分:0
注 册:2005-9-16
收藏
 问题点数:0 回复次数:4 
帮个忙啊!!!

看看为什么不能实现啊!!!!第一个页面是:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>无标题文档</title> </head> <body> <form name="form1" method="post" action="ggalf.asp"> <table width="75%" border="1"> <tr> <td width="29%">请输入身份证号:</td> <td width="35%"><input name="a" type="text" id="a">  </td> <td width="36%">查询年月日与性别</td> </tr> <tr> <td colspan="3">               <input type="submit" name="Submit" value="提交"></td> </tr> </table>      </form> </body> </html>

第二个页面是:

<% dim the_num,the_year,the_month,the_day,the_sex the_num=request("a") the_sex=right(the_num,1) the_sss=mid(the_num,17,1) if isnumeric(the_num) then select case len(the_num) case 15 the_year=mid(the_num,7,2) the_month=mid(the_num,9,2) the_day=mid(the_num,11,2) response.write"出生日期为:" case 18 the_year=mid(the_num,7,4) the_month=mid(the_num,11,2) the_day=mid(the_num,13,2) response.write"出生日期为:" case else response.write "<script>window.alert('请输入中国人的身份证号码!谢谢合作!!!')</script>" response.write "<script>window.location.href='default.asp'</script>" end select response.write the_year&"年"&the_month&"月"&the_day&"日" &"<br>" if the_sex mod 2=1 then response.write"性别为:男" else response.write"性别为:女" end if else select case len(the_num) case 15 the_year=mid(the_num,7,2) the_month=mid(the_num,9,2) the_day=mid(the_num,11,2) response.write"出生日期为:" case 18 the_year=mid(the_num,7,4) the_month=mid(the_num,11,2) the_day=mid(the_num,13,2) response.write"出生日期为:" case else response.write "<script>window.alert('请输入中国人的身份证号码!谢谢合作!!!')</script>" response.write "<script>window.location.href='default.asp'</script>" end select response.write the_year&"年"&the_month&"月"&the_day&"日" &"<br>" if the_sss mod 2=1 then response.write"性别为:男" else response.write"性别为:女" end if end if %> <p>&nbsp;</p> <p>&nbsp;</p> <p><font color="#0000FF" size="5"><a href="default.asp">返回首页!!!</a></font> </p>

我都愁死了!!!!为什么啊!!!! 是不是我的机子有问题啊!!1 你们看看有没有用啊!!谢谢!!

搜索更多相关主题的帖子: 身份证 name head body 
2005-10-20 20:16
静夜思
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:济南的冬天
等 级:管理员
威 望:11
帖 子:8902
专家分:2567
注 册:2004-3-25
收藏
得分:0 
回复:(fjfj1212)帮个忙啊!!!
图片附件: 游客没有浏览图片的权限,请 登录注册
图片附件: 游客没有浏览图片的权限,请 登录注册
fjfj1212我希望你能开个主题帖给大家作个合理的解释

畅所欲言
2005-10-20 20:26
fjfj1212
Rank: 1
等 级:新手上路
帖 子:113
专家分:0
注 册:2005-9-16
收藏
得分:0 
主题贴???什么意思啊!!我不明白啊!!!
请祥细告知!!

我就是我!!! 永不退缩!!!
2005-10-22 10:45
静夜思
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:济南的冬天
等 级:管理员
威 望:11
帖 子:8902
专家分:2567
注 册:2004-3-25
收藏
得分:0 
好的,投票结束后就让真相大白

[此贴子已经被作者于2005-10-22 10:48:35编辑过]



畅所欲言
2005-10-22 10:47
小狐001
Rank: 1
等 级:新手上路
帖 子:214
专家分:0
注 册:2005-6-3
收藏
得分:0 
[fjfj1212]你犯什么法了?

昨天夜里,小熊坐在狮子身上哭泣, 他们告诉我—— 那只蓝色的海豚也在梦里想念你!
2005-10-22 10:54
快速回复:帮个忙啊!!!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017698 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved