当前位置: 代码迷 >> ASP >> 请教,为什么小弟我一直入不了库,疯了,江湖救急
  详细解决方案

请教,为什么小弟我一直入不了库,疯了,江湖救急

热度:205   发布时间:2012-03-09 16:54:56.0
请问,为什么我一直入不了库,急疯了,江湖救急。
请问,为什么我一直入不了库?

输入页面:companyInput.asp

<!--#include   file= "common/conn.asp "-->
<html>
<head>
<title> 企业基本信息录入 </title>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 ">
</head>
<body>
<form   name=add   action= "companyInputDeal.asp ">
<table   width=778   border=1   align=center>
<tr> <td   align=center   colspan=2> <font   size=5> <b> 企业基本信息录入 </b> </font> </td> </tr>
<tr   width=300   align=right> <td> 企业名称: </td> <td   align=left> <input   Type=text   size=80   maxlength=80   name=companyName_c> </td> </tr>
<tr   width=300   align=right> <td> 企业法人代表: </td> <td   align=left> <input   Type=text   size=80   maxlength=80   name=legalRepresent_c> </td> </tr>
<tr   width=300   align=right> <td> 企业注册资金: </td> <td   align=left> <input   Type=text   size=80   maxlength=80   name=registerFund_c> </td> </tr>
<tr   width=300   align=right> <td> 企业注册年份: </td> <td   align=left> <input   Type=text   size=80   maxlength=80   name=registerYear_c> </td> </tr>
<tr   width=300   align=right> <td> 企业详细地址: </td> <td   align=left> <input   Type=text   size=80   maxlength=80   name=address_c> </td> </tr>
<tr   width=300   align=right> <td> 企业联系方式: </td> <td   align=left> <input   Type=text   size=80   maxlength=80   name=contactWay_c> </td> </tr>
<tr   width=300   align=right> <td> 企业网址: </td> <td   align=left> <input   Type=text   size=80   maxlength=80   name=comWebsite_c> </td> </tr>
<tr   width=300   align=right> <td> 企业简介: </td> <td   align=left> <textarea   rows=5   cols=80   name=briefIntro_c> </textarea> </td> </tr>
<tr> <td   align=center   border=1   colspan=2> <input   type=submit   size=5   value=提交   onclick=sub()> &nbsp&nbsp&nbsp&nbsp <input   type=reset   size=5   value=清空   onclick=> </td> </tr>
</table>
</form>
</body>
</html>


处理逻辑页面:companyInputDeal.asp

<!--#include   file= "common/conn.asp "-->
<%

companyName_c=trim(request.form( "companyName_c "))
legalRepresent_c=trim(request.form( "legalRepresent_c "))
registerFund_c=trim(request.form( "registerFund_c "))
registerYear_c=trim(request.form( "registerYear_c "))
address_c=trim(request.form( "address_c "))
contactWay_c=trim(request.form( "contactWay_c "))
comWebsite_c=trim(request.form( "comWebsite_c "))
briefIntro_c=trim(request.form( "briefIntro_c "))

sql= "insert   into   companyInfo(companyName_c,legalRepresent_c,registerFund_c,registerYear_c,address_c,contactWay_c,comWebsite_c,briefIntro_c)   values( ' "&companyName_c& " ', "&legalRepresent_c " ', "&registerYear_c& " ', "&address_c& " ', "&contactWay_c& " ', "&comWebsite_c& " ', "&briefIntro_c& " ') "
  相关解决方案