Hello
the problem is when i type the button, it will pop up IE and IE's url is 127.0.0.1/store_data.asp
however i can store data to db.
Frame1:
stop();
asp = new LoadVars();
input box's var:
asp.productname
button:
on (release) {
asp.send("store_data.asp","POST"
;
//asp.sendAndLoad("store_data.asp", "POST"
;
}
store_data.asp:
<%
'Myself = Request.ServerVariables("PATH_INFO"
Set kc = Server.CreateObject("ADODB.Connection"
dsn = "Driver={Microsoft Access Driver (*.mdb)}" &_
";Dbq=" & Server.MapPath("db/flash.mdb"
kc.open dsn
if (Request.Form("productname"
<>empty) then
sql="Insert Into product (product_name) values ( '"& request("productname"
&"')"
set rs=kc.execute(sql)
else
response.write "&error=not success"
end if
'rs.close
kc.close
Set rs=Nothing
Set kc=Nothing
%>
thanks for help
the problem is when i type the button, it will pop up IE and IE's url is 127.0.0.1/store_data.asp
however i can store data to db.
Frame1:
stop();
asp = new LoadVars();
input box's var:
asp.productname
button:
on (release) {
asp.send("store_data.asp","POST"
//asp.sendAndLoad("store_data.asp", "POST"
}
store_data.asp:
<%
'Myself = Request.ServerVariables("PATH_INFO"
Set kc = Server.CreateObject("ADODB.Connection"
dsn = "Driver={Microsoft Access Driver (*.mdb)}" &_
";Dbq=" & Server.MapPath("db/flash.mdb"
kc.open dsn
if (Request.Form("productname"
sql="Insert Into product (product_name) values ( '"& request("productname"
set rs=kc.execute(sql)
else
response.write "&error=not success"
end if
'rs.close
kc.close
Set rs=Nothing
Set kc=Nothing
%>
thanks for help