<%
tc_akey=trim(request("akey"))
tc_akey=replace(tc_akey,"'","")
tc_acond=request("acond")
if tc_akey="" then
set rss=conn.execute("select tc_id * from tcinfor order by tc_id desc")
else
set rss=conn.execute("select tc_id * from tcinfor where "&tc_acond&" like '%"&tc_akey&"%' order by tc_id desc")
end if
id=rss("tc_id")
%>
<form name="form3" method="post" action="">
<table align="center">
<td>所需关键词:</td>
<td><input name="akey" type="text" id="akey" size="20"></td>
<td align="center">按</td>
<td><select name="acond" id="acond">
<option value="tc_code">医院名称</option>
<option value="tc_indate">录入时间</option>
<option value="tc_zhy">所在省份</option>
<option value="tc_name">院长姓名</option>
<option value="tc_shh_shh_zhw1">体检中心主任姓名</option>
</select></td>
<tr>
<td colspan="4"><input name="btm2" type="button" id="btm2" style="font-family: 新细明体, 宋体, Arial; font-size: 9pt; height:20px;background-color:#D4D0C8;" onClick=" window.location='word_con_excel.asp?'" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#D4D0C8'" value="生成以上条件excel报表">
<input name="btm3" type="button" id="btm3" style="font-family: 新细明体, 宋体, Arial; font-size: 9pt; height:20px;background-color:#D4D0C8;" onClick=" window.location='word_con_word.asp'" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#D4D0C8'" value="生成以上条件word文档"></td>
</table>
</form>
我怎样从数据库中得到我 所选的条件的数据阿?onClick=" window.location='word_con_excel.asp?'" 这一句怎么写呢?
这样写吗?
onClick=" window.location='word_con_excel.asp?tc_acond='%'akey'%'"
我试了几次都不对啊?
各位大哥帮我一下吧!
[求助]我怎样取得这个值啊?