<td width="120" align="right">
转到第
<select name="SelectPage" id="SelectPage" onChange="">
<?php
for ($i=0; $i<$pages; $i++)
print("<option value=".$i.($SelectPage==$i?" selected":"").">".($i+1)."</option>");
?>
</select>
页
</td>
例子罢了,请根据你自己实际修改
转到第
<select name="SelectPage" id="SelectPage" onChange="">
<?php
for ($i=0; $i<$pages; $i++)
print("<option value=".$i.($SelectPage==$i?" selected":"").">".($i+1)."</option>");
?>
</select>
页
</td>
例子罢了,请根据你自己实际修改
<%
for i=1 to rs.PageCount
%>
<option value=<%=i%> <%
if PageNo=i then
Response.Write("selected")
end if %>><%=i%></option>
<%
next
%>
</select>
<%
for i=1 to rs.PageCount
if PageNo=i then
response.write "<option value=" & i & " selected>" & i & "</option>"
else
response.write "<option value=" & i & ">" & i & "</option>"
end if
next
%>
</select>