日期:2014-05-17  浏览次数:20902 次

在表单中的action中能传递值吗?
在表单中能传递值吗?如 <form   action= "xx.asp?id= <%=rs( "id ")%> "   method= "post "> ,我觉得应该是可以的,但在处理页面(xx.asp)中怎么好象得不到传递的字段?请看下面的两个页面:
表单页面:
<%
    dim   rs,sql
    set   rs=server.CreateObject( "adodb.recordset ")
    sql= "select   *   from   admin   where   id= "&request.QueryString( "id ")
    rs.open   sql,conn,1,1
    %>
    <form   action= "saveEditAdmin.asp?name= <%=rs( "name ")%> "   name= "form1 ">  
    <table   width= "500 "   border= "0 "   cellspacing= "1 "   cellpadding= "0 "   bgcolor= "#99CCFF ">
                <tr   class= "kind ">
                    <td   colspan= "2 "   align= "center "> 修改后台用户 </td>
                    </tr>
                <tr   class= "kind ">
                    <td   width= "150 "   align= "center "> 用户名 </td>
                    <td   width= "343 "   align= "left "> <input   name= "user "   type= "text "   size= "20 "   maxlength= "50 "   value= " <%=rs( "name ")%> "> </td>
                </tr>
                <tr   class= "kind ">
                    <td   align= "center "> 密&nbsp;&nbsp;码 </td>
                    <td   align= "left "> <input   name= "pwd "   type= "password "   size= "20 "   maxlength= "50 "   value= " <%=rs( "pwd ")%> "> </td>
                </tr>
                <tr   class= "kind ">
                    <td   align= "center "> 用户级别 </td>
                    <td   align= "left "> <select   name= "jb ">
                        <option   value= "1 "   <%if   rs( "jb ")=1   then   response.write "selected "   end   if%> > 管理员 </option>
                        <option   value= "2 "   <%if   rs( "jb ")=2   then   response.write "selected "   end   if%> > 信息采编员 </option>
                        <