ASP 表单提交的问题,各位老师给指点,急!~

来源:百度知道 编辑:UC知道 时间:2024/05/13 20:51:09
<!--#include file="db_connect.inc" -->
<%
brand=Request.form("brand")
new_brand=Request.form("new_brand")
brand_order=Request.form("brand_order")
model=Request.form("model")
display_order=Request.form("display_order")
price=Request.form("price")
mult_1=Request.form("mult_1")
mult_2=Request.form("mult_2")
description=Request.form("description")
the_hardware=Request.form("the_hardware")
add_in=Request.form("add_in")
‘==============下面是我新加的两行===========原来的程序正常,加上这两段后,下面还需要修改那些地方,各位老师给指点一下,谢谢!!==
price_tel=Request.form("price_tel")
price_beizhu=Request.form("price_beizhu")

‘==================上面两行是新加的,其它的没动过都正常==========
'------------------------------------------------------------------------------------ proc the Data
if price="" then<

if the_hardware<>"RAM" then
sql ="INSERT INTO "&the_hardware&" (brand,model,display_order,price_1,price_2,description,brand_order,price_tel,price_beizhu)"
sql =sql&"VALUES ('"&brand&"','"&model&"','"&display_order&"','"&price&"','"&price&"','"&description&"','"&brand_order&"',"&price_tel&"',"&price_beizhu&"')"
conn.execute sql