发新话题
打印

在学asp请大家帮帮忙谢谢!!

在学asp请大家帮帮忙谢谢!!

save_info.asp如下: <% dim sortid dim typeid dim showname dim showname1 dim sheng dim jgsm dim gydw dim chj dim lsj dim mmfx dim period dim content dim linkman dim address dim email dim phone dim company1 dim fax dim postcode dim web dim city dim country dim user_id dim rs dim sql user_id=request("user_id") sortid=request("sortid") typeid=request("typeid") showname=request("showname") showname1=request("showname1") sheng=request("sheng") jgsm=request("jgsm") gydw=request("gydw") chj=request("chj") lsj=request("lsj") mmfx=request("type") period=request("period") content=request("content") linkman=request("linkman") company=request("company") company1=request("company1") address=request("address") email=request("email") phone=request("phone") country=request("country") if trim(request("postcode"))="" then post="空" else post=request("postcode") end if if trim(request.form("fax"))="" then fax="空" else fax=request.form("fax") end if if trim(request.form("web"))="" then web="空" else web=request.form("web") end if city=request.form("city") set rs=server.createobject("adodb.recordset") sql="select * from ce_gy where company=';"&request("company")&"';and showname=';"&request("showname")&"';" rs.open sql,conn,1,3 if not rs.eof then response.write"" response.end else rs.addnew rs("user_id")=user_id rs("sortid")=sortid rs("typeid")=typeid rs("showname")=showname rs("showname1")=showname1 rs("sheng")=sheng rs("jgsm")=jgsm rs("gydw")=gydw rs("chj")=chj rs("lsj")=lsj rs("type")=mmfx rs("period")=period rs("content")=content rs("linkman")=linkman rs("company")=company rs("company1")=company1 rs("address")=address rs("mail")=email rs("phone")=phone rs("fax")=fax rs("postcode")=post rs("country")=country rs("web")=web rs("city")=city rs("gsid")=session("id") rs("dateandtime")=date() rs.update rs.close set rs=noting conn.close set conn=nothing %> <%end if%>



您的信息将在24小时内审核后发布!

 

我想实现的是当点击发布时就把信息发布出去 点击查看时就可以看到你刚才发布的信息 而不用24小时内审核后发布! 请各位高手帮忙的 谢谢!!

TOP

在学asp请大家帮帮忙谢谢!!

用一个  ASP 文件   接受  变量
把 详情   显示  出来
如果没有  变量    就  显示 错误

TOP

在学asp请大家帮帮忙谢谢!!

谢谢!!
我就用一个变量接受全部的字段strSql = "insert into topic (sortid,typeid,showname......)  Values (';"
strSql = StrSQl & sortid& "';, "
  strSql = StrSQl & typeid& ", ';"
strSql = StrSQl & showname& "';, ';"...)"
conn.Execute (strsql) 改的是可以的
但我不知道跟rs.addnew
有什么区别?楼主你知道吗能不能告诉我 谢谢!

TOP

在学asp请大家帮帮忙谢谢!!

rs是什么
conn又是什么
百度一下    不就知道了嘛

TOP

发新话题