请问如何将下面的产品代码修改成产品修改代码。弄了很久都没弄出来,真灰心,
请高手们帮帮忙,非常感谢。
<%
if session("admin_name")="" then response.end
set rs=server.createobject("adodb.recordset")
%>
<%
if request("action")="save" then
   hw_name=request("hw_name")
   hw_content=request("hw_content")
   hw_cash=request("hw_cash")
   hw_pic=request("hw_pic")
   sort_id=request("sort_id")
   company=request("company")
   pifa=request("pifa")
   daili=request("daili")
   hwsn=request("hwsn")
   if not(isnumeric(hw_cash)) then
        errmsg="
"+"  商品的价格应该为数字!"
        founderr=true
    end if
    if hw_name="" then
        errmsg=errmsg+"
"+"  商品名称不能为空!"
        founderr=true
    end if
    if hw_content="" then
        errmsg=errmsg+"
"+"  商品介绍不能为空!"
        founderr=true
    end if
    if sort_id="" then
        errmsg=errmsg+"
"+"  商品类别不能为空!"
        founderr=true
    end if       
    if hw_pic="" then hw_pic="images/noimage.gif"    
    if founderr=true then
        response.write errmsg
        response.write "[
返回]"
        response.end
    else
        hw_name=server.htmlencode(hw_name)
        hw_name=replace(hw_name," "," ")
        hw_name=replace(hw_name,chr(13)&chr(10),"
")                
        hw_content=server.htmlencode(hw_content)
        hw_content=replace(hw_content," "," ")
        hw_content=replace(hw_content,chr(13)&chr(10),"
")                
        hw_pic=server.htmlencode(hw_pic)            
        sql="select * from hw"
        rs.open sql,conn,3,3
        rs.addnew
        rs("hw_name")=hw_name
        rs("hw_content")=hw_content
        rs("hw_cash")=hw_cash
        rs("sort_id")=sort_id
       rs("company")=company
       rs("daili")=daili
       rs("pifa")=pifa
       rs("hw_sn")=hwsn
        rs("hw_pic")=hw_pic
        rs.update
    end if
    response.write "
  商品添加成功!"
    response.write "[
返回]"
    rs.close    
else
%>
<%
end if
set rs=nothing
conn.close
set conn=nothing
%>