当前位置: 代码迷 >> 企业信息化 >> ASP-写入数据库时没反应
  详细解决方案

ASP-写入数据库时没反应

热度:8347   发布时间:2013-02-26 00:00:00.0
ASP求助--写入数据库时没反应
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>MEGA International Electronics co.,LIMITED</title>
<link href="style/css.css" rel="stylesheet" type="text/css" />
<!--#include file="conn.asp"-->
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
<script language = "JavaScript">
function CheckForm()
{
if (document.myform.cpname.value.length == 0) {
alert("请输入产品名称");
document.myform.cpname.focus();
return false;
}
if (document.myform.sl.value.length == 0) {
alert("请输入您理想的数量.");
document.myform.sl.focus();
return false;
}
if (document.myform.gsname.value.length == 0) {
alert("请输入公司名称.");
document.myform.gsname.focus();
return false;
}
if (document.myform.name.value.length == 0) {
alert("请输入你的职称");
document.myform.name.focus();
return false;
}
    if (document.myform.lxr.value.length==0)
{
   alert("联系人不能为空");
   document.myform.lxr.focus();
   return false;
}
if (document.myform.Tel.value.length == 0) {
alert("不留下电话找不到你哦");
document.myform.Tel.focus();
return false;
}

if (document.myform.cz.value.length == 0) {
alert("请输入传真");
document.myform.cz.focus();
return false;
}
if (document.myform.email.value.length == 0) {
alert("E-mail不能为空");
document.myform.email.focus();
return false;
}
    if (document.myform.dz.value.length==0)
{
   alert("请输入地址");
   document.myform.dz.focus();
   return false;
}
if (document.myform.content.value.length == 0) {
alert("请输入内容");
document.myform.content.focus();
return false;
}
return true;
}
</script>

</head>
<body>
  <div id="top">
   <div class="box">
      <div class="top_1"><img src="images/images_03.gif" width="252" height="46" border="0" alt="标题"/></div>
  
  <div class="top_2"><img src="images/images_06.gif" width="366" height="26" border="0" alt="口语"/></div>  
    </div>

<div class="box_right">
  <ul class="eng">
  <li><a href="#">English </a>|</li>
  <li><a href="#">&nbsp;中文</a></li>
  </ul>
  <div class="Serach">
    <form action="" method="get">
<input type="text" size="25"  style="border:2px #FF0000 solid; height:22px; line-height:22px;"/>
<input type="submit" name="Submit" value="搜&nbsp;&nbsp;索"class="Serach_1" />
  相关解决方案