设为首页收藏本站

新微赢技术网

 找回密码
 注册
搜索
热搜: 回贴
查看: 42|回复: 1
打印 上一主题 下一主题

[求助]奇怪的问题,大家来帮忙看一下,谢谢!!

[复制链接]
跳转到指定楼层
1#
发表于 2010-1-13 07:35:18 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
是关于往表中插入纪录的问题,用户输入信息的页面为sgfy.asp,插入纪录的页面为sgtj.asp
sgfy.asp

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style type="text/css">
<!--
body {
margin-top: 0px;
background-image: url(../../img/beijing.gif);
}
.style1 {font-family: "宋体"}
.style2 {font-size: 10pt}
.style4 {font-family: "宋体"; font-size: 10pt; }
.style6 {font-family: "宋体"; font-size: 10pt; color: #FF0000; }
-->
</style>
<script language="vbscript">
sub checkform()
if trim(form1.zaphone.value)="" then
msgbox("请输入障碍手机号!")
form1.zaphone.focus()
window.event.returnValue=false
return
end if
if IsNumeric(form1.zaphone.value)=false then
msgbox("障碍手机号码必须输入数字!")
form1.zaphone.focus()
window.event.returnValue=false
return
end if
if trim(form1.zatime.value)="" then
msgbox("请输入所要查询费用的年月!!")
form1.zatime.focus()
window.event.returnValue=false
return
end if
if trim(form1.textzhuti.value)="" then
msgbox("障碍主题不能为空!")
form1.textzhuti.focus()
window.event.returnValue=false
return
end if
if trim(form1.textneirong.value)="" then
msgbox("障碍内容不能为空!")
form1.textneirong.focus()
window.event.returnValue=false
return
end if
end sub
</script>
</head>
<body>
<div align="center">
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../../img/logo2.gif" width="780" height="50"></td>
</tr>
</table>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form name="form1" method="post" onsubmit="checkform()" action="/shengao/sgtj/asp/sgtj.asp">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="right"></div> <div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" bgcolor="#5A9ADE"><div align="right" class="style1 style2"></div></td>
<td width="21%" bgcolor="#5A9ADE"><div align="left" class="style4">
<div align="right"><span class="style1 style2">申告人:</span></div>
</div></td>
<td width="23%" bgcolor="#5A9ADE"><div align="right" class="style4">
<div align="left"><%=Session("username")%></div>
</div></td>
<td width="17%" bgcolor="#5A9ADE"><div align="left" class="style4">
<div align="right"></div>
</div></td>
<td width="10%" bgcolor="#5A9ADE"><div align="right"><span class="style2">时间:</span></div></td>
<td width="27%" bgcolor="#5A9ADE"><div align="left"><span class="style2"><span class="style4"><%=now()%></span>
</span></div></td>
<td width="1%" bgcolor="#5A9ADE">&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="style4">
<td width="1%" bgcolor="#5A9ADE"><div align="right"></div></td>
<td width="21%" bgcolor="#63A6E7"><div align="right">电话:</div></td>
<td width="20%" bgcolor="#63A6E7"><div align="left"><%=Session("uphone")%></div></td>
<td width="9%" bgcolor="#63A6E7">&nbsp;</td>
<td width="10%" bgcolor="#63A6E7"><span class="style2">
</span></td>
<td width="12%" bgcolor="#63A6E7"><span class="style2">
<input name="sgzhuangtai" type="hidden" id="sgzhuangtai3" value="未受理">
</span></td>
<td width="26%" bgcolor="#63A6E7"><span class="style2">
<input name="sgtime" type="hidden" id="sgtime2" value="<%=now()%>">
<input name="fenlei1" type="hidden" id="fenlei1" value="11111">
<input name="fenlei2" type="hidden" id="fenlei2" value="22222">
</span></td>
<td width="1%" bgcolor="#5A9ADE">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" bgcolor="#5A9ADE">&nbsp;</td>
<td width="21%" bgcolor="#73aee7" class="style4"><div align="right">号码:</div></td>
<td width="20%" bgcolor="#73aee7" class="style4"><div align="left">
<input name="zaphone" type="text" id="zaphone" size="20" maxlength="11">
</div></td>
<td width="20%" bgcolor="#73aee7" class="style4"><div align="right">查询年月:</div></td>
<td width="37%" bgcolor="#73aee7" class="style4"><div align="left">
<input name="zatime" type="text" id="zatime" size="27" maxlength="20">
</div></td>
<td width="1%" bgcolor="#5A9ADE">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#B5D7F7"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" bgcolor="#5A9ADE"><div align="right" class="style4"></div></td>
<td width="21%"><div align="right"><span class="style4">主题:</span> </div></td>
<td width="77%"><div align="left">
<input name="textzhuti" type="text" id="textzhuti2" size="54" maxlength="20">
<span class="style6">请不要超过20个汉字</span></div></td>
<td width="1%" bgcolor="#5A9ADE">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" bgcolor="#5A9ADE"><div align="right" class="style4"></div></td>
<td width="21%" align="right" valign="top" bgcolor="#DEEFFF"><div align="right"><span class="style4">内容:</span>
</div></td>
<td width="77%" bgcolor="#DEEFFF"><div align="left">
<textarea name="textneirong" cols="70" rows="10" id="textarea"></textarea>
</div></td>
<td width="1%" bgcolor="#5A9ADE">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#5A9ADE">
<td width="36%"><div align="right">
<input type="submit" name="Submit" value="提交">
</div></td>
<td width="28%">&nbsp;</td>
<td width="36%"><div align="left">
<input type="reset" name="Submit2" value="重写">
</div></td>
</tr>
</table></td>
</tr>
</table>
</form></td>
</tr>
</table>
</div>
</body>
</html>


sgtj.asp 插入纪录页面...在测试中这个是可以插入空的纪录的


<
您需要登录后才可以回帖 登录 | 注册

本版积分规则

申请友链|小黑屋|最新主题|手机版|新微赢技术网 ( 苏ICP备08020429号 )  

GMT+8, 2024-11-20 11:24 , Processed in 0.103237 second(s), 9 queries , Gzip On, Memcache On.

Powered by xuexi

© 2001-2013 HaiAn.Com.Cn Inc. 寰耽

快速回复 返回顶部 返回列表