asp如何在本页获取表单数据并写入到数据库?

2024-12-28 23:43:50
推荐回答(1个)
回答1:










<%
if not isempty(request("tijiao")) then
username=request.form("username")
title=request.form("title")
content=request.form("content")
if username="" or title="" then
response.write""
else
sql="insert into(username,title,content) values('"&username&"','"&title&"','"&content&"')"
conn.execute(sql)
response.write""
end if
end if
%>