<%
conn.close:set conn=nothing%>
<%Sub ShowData()
set rst=server.createobject("ADODB.Recordset")
sql1="select * from job_member where member_login='"&pmember_login&"'"
rst.open sql1,conn,1,1
if not rst.eof then
pmember_hukouprovinceid=rst("Member_hukouprovinceid")
pmember_hukoucapitalid=rst("Member_hukoucapitalid")
pmember_hukoucityid=rst("Member_hukoucityid")
else
response.write "<script language=javascript>alert('出错!');javascript:history.back();</script>"
response.end
end if
rst.close
set rst=nothing
%>
<%
sql="select * from job_polity"
rs.open sql,conn,1,1
do while not rs.eof
if pmember_polity=rs("polity_id") then
response.write"<OPTION value="&rs("polity_id")&" selected>"&rs("polity_name")&"</option>"
else
response.write"<OPTION value="&rs("polity_id")&">"&rs("polity_name")&"</option>"
end if
rs.movenext
loop
rs.close
%>
问下,黑体的意思是什么意思啊,?源代码一个一根据身份自动生成相应的城市
我想利用这个根据前面的一个选项调用数据库函数来实现第二个选项,和我们一般选择了省份,在城市那里就知道生成相应的市