表单的内容如何存入数据库中

这篇博客探讨了如何在网页表单中处理数据,包括将动态表格中的信息存入数据库,如仓库选择、价格和条码的自动填充与修改,以及图片上传和回显的功能。内容涉及数据库连接、SQL操作以及前端交互元素的实现。
摘要由CSDN通过智能技术生成
请问如何对接数据库,主要是下面红色字体部份,另外下面动态表格中的<input name="ku">此部份换成下拉菜单选择仓库。表格中的价格和条码自动取上行的进货价和条码,但在表格中也可以更改,表中的图片在表中上传,上传后回显,然后可以在表中删除

<%
if session("shiwei_username")="" then
%>
<script language="javascript">
top.location.href="../index.asp"
</script>
<%  
  response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->

<html>
<head>
<title><%=dianming%> - 产品入库</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<style>
body {
background-color:#FFFFFF;
}
     table{margin: 5px auto 0;}
.add,.remove{color: blue; text-decoration: underline; cursor: pointer; margin: 0 5px;} 
.i_color_error,.i_model_error{display: none; color: red;}
.pirce2,.shulian,.ku,.tiaoma{width: 100px;}
.pic{color: #333333; width: 150px;}
#i_model_add{background: #FF8000; color: #EEEEEE; padding: 3px 5px; box-shadow: 0px 1px 1px 1px #CCCCCC; border-radius: 3px; cursor: pointer; margin-left: 5px;}
</style>
</HEAD>

<BODY>
<%
if fla1="0" and session("shiwei_id")<>"1" then
%>
<br><center><img src="../imag
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值