ASP提交内容问题

来源:百度知道 编辑:UC知道 时间:2024/05/14 04:50:25
我设计了一个页面,可以提交文章。

但是我制作了两个数据表,分别是表1,表2

就是在提交的时候可以选择提交到哪个数据表内,

这个功能该怎么设计?

在线等。。。。

让用户选择的么可以用无线按钮,即单选按钮,放在提交过来的form里面,格式:“<input type="radio" name="radiobutton" value="radiobutton">”
name设成同一个,value设成不同的,根据传来的值进行判断。
例如:
<%
if request("radiobutton")=1 then
更新表1的代码
else if
更新表2的代码
else
报错代码
end if
%>

提交时选择表A、B

接收时判断是A还是B
if A then 往A表里写
if B then 往B表里写