<%
if request.Form("table")="yes" then
if IsNumeric(request.Form("td")) then
td=int(request.Form("td"))
if td>0 then
if IsNumeric(request.Form("num")) then
num=int(request.Form("num"))
tr=int(num/td)+1
response.Write("
")
do while tr>0
response.Write("")
td_tmp=td
do while td_tmp>0
if num>0 then
response.Write(" | ")
else
response.Write(" | ")
end if
num=num-1
td_tmp=td_tmp-1
loop
response.Write("
")
tr=tr-1
if num<=0 then
exit do
end if
loop
response.Write("
")
else
response.Write("
请输入要生成的数字
")
end if
else
response.Write("
单元格个数必须大于0
")
end if
else
response.Write("
单元格个数必须输入数字
")
end if
end if
%>