用connection对象的execute方法将用户提交的用户名和密码添加到webusers表中,出问题了

来源:百度知道 编辑:UC知道 时间:2024/06/08 20:01:12
我点提交后,出现的还是6-04.html这个页面,填写的东西也没了
我的数据库建了个webuseus表,username和password两个列
第一个页面6-04.html代码是
<!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>无标题文档</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="/mysite/asp/6-04.asp">
<table width="765" border="0">
<tr>
<td colspan="2"> </td>
</tr

那你发我消息,把文件发给我吧

6-04.html中有

<form id="form1" name="form1" method="post" action="/mysite/asp/6-04.asp">

而6-04.asp中有
<!-- #include virtual="/mysite/asp/adovbs.inc" -->

1. 你的6-04.asp可能放在根目录下了,应该把它放到/mysite/asp下

2. 把<!-- #include virtual="/mysite/asp/adovbs.inc" -->改成
<!-- #include virtual="adovbs.inc" -->