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

<!--#include file="checkuser.asp"--> <!--#include file="conn.asp"--> <!--#include file="upload_5xsoft.inc"--> <!--#include file="lib.asp" --> <% set rs=conn.execute("select * from patent_firsort") set rs1 = conn.execute("select * from patent_secsort order by patent_firid desc") %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>新产品发布</title> <link rel="stylesheet" href="style.css"> <script language="javascript"> function checkadd(){ if(document.product.tbxproname.value==""){ alert("请输入产品的名称!"); document.product.tbxproname.focus(); return false; } if(document.product.productid.value==""){ alert("请输入产品的编号!"); document.product.productid.focus(); return false; } if(document.product.selectlei.value==""){ alert("请选择所属的大类!"); document.product.selectlei.focus(); return false; }

tjyxj=document.product.tjyxj.value; if (tjyxj!="") { strTemp="0123456789"; for (i=0;i<tjyxj.length;i++) { j=strTemp.indexOf(tjyxj.charAt(i)); if (j==-1) {alert("推荐优先等级必须为数字!") document.product.tjyxj.value="9999"; document.product.tjyxj.focus(); return false; } } } rmyxj=document.product.rmyxj.value; if (rmyxj!="") { strTemp="0123456789"; for (i=0;i<rmyxj.length;i++) { j=strTemp.indexOf(rmyxj.charAt(i)); if (j==-1) {alert("热门优先等级必须为数字!") document.product.rmyxj.value="9999"; document.product.rmyxj.focus(); return false; } } }

} </script> </head>

<body topmargin="0"> <table width="95%" align="center" cellspacing="1" bgcolor="A4B6D7"> <tr> <td height="30" bgcolor="ECF5FF">&nbsp;&nbsp;&nbsp;&gt;&gt;新产品发布管理</td> </tr> </table> <form name="product" method="post" action="" enctype="multipart/form-data" onSubmit="return checkadd()"> <table width="95%" align="center" cellpadding="5" cellspacing="1" bgcolor="A4B6D7"> <tr bgcolor="ECF5FF"> <td width="20%" height="25" align="right" bgcolor="ECF5FF">专利产品名称:</td> <td width="80%"><input name="tbxproname" type="text" class="input" id="tbxproname" style="width:500"></td> </tr> <tr bgcolor="ECF5FF"> <td height="25" align="right" bgcolor="ECF5FF">推荐产品优先级:</td> <td valign="bottom" bgcolor="ECF5FF"><input name="tjyxj" type="text" class="input" id="tjyxj" value="9999" size="6"> &nbsp;&nbsp;优先级数字越小,位置越靠前!</td> </tr> <tr bgcolor="ECF5FF"> <td height="25" align="right" bgcolor="ECF5FF">&nbsp;</td> <td bgcolor="ECF5FF">&nbsp;&nbsp; <input name="Submit" type="submit" class="button" value=" 提 交 " onFocus="blur()"> &nbsp; &nbsp;<input name="reset" type="reset" class="button" value=" 重 置 " onFocus="blur()"></td> </tr> </table> </form> </body> </html> 以上是我的代码 问题是 我图片不提交也直接运行 运行的时候,只能检测到选择大类那里,下面就直接运行了

搜索更多相关主题的帖子: ASP 
2005-08-13 23:39
快速回复:ASP问题。请教。。。
数据加载中...
 
   



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

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