回 帖 发 新 帖 刷新版面

主题:求助,iframe的取值问题

<!--#include file="articleconn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>查无下落企业录入</title>
  <style>
  body {
    font-size:12px;
    margin-left: 33px;
}
  td {text-align:center}
  h1 {font-size:26px;}
  h4 {font-size:16px;}
  em {color:#999; margin:0 10px; font-size:11px; display:block}
  </style>
</head> 

<%
id=trim(request("id"))

dim rs1
dim sql1
dim count
set rs1=server.createobject("adodb.recordset")
sql1 = "select * from HK_PIAN where id="&id
rs1.open sql1,conn,1,3
%>



<body>
<form name="form" method="post" action="pianwhsave.asp"><tr>
      <table width="875" border="0" align="center">
        <tr>
          <td width="791"><table width="791" height="114" border="1" bordercolor="#000000">
              <tr>
                <td height="32" colspan="4" bgcolor="#CCCCCC">片 区 维 护</td>
              </tr>
              <tr>
                <td width="175" height="36" nowrap bgcolor="#CCCCCC"><div align="center">姓名</div></td>
                <td width="240" nowrap><input name="name" type="text" id="name" style="width:200px" value="<%=rs1("name")%>" /></td>
                <td width="175" nowrap bgcolor="#CCCCCC"><div align="center">巡查组</div></td>
                <td width="226" nowrap><input name="xcz" type="text" id="xcz" style="width:200px" value="<%=rs1("xcz")%>" /></td>
              </tr>
              <tr>
                <td height="36" nowrap bgcolor="#CCCCCC"><div align="center">管辖片</div></td>
                <td nowrap><input name="pian" type="text" id="pian" style="width:200px" value="<%=rs1("pian")%>" /></td>
                <td nowrap bgcolor="#CCCCCC"><div align="center">照片上传</div></td>
                <td nowrap><label>
                  <iframe name="touxiang" marginwidth=0 marginheight=0  frameborder=0 scrolling=no src='../picup1.asp' width=200 height=30></iframe>
                  </label></td>
              </tr> 
            </table>
            <label> <br>
            </label></td>
        </tr>
        <tr>
          <td><input name="pian2" type="text" id="pian2" style="width:200px" value="" />
          
          <td>        
          <td>        
        </tr>
        <tr>
          <td height="23"><label>
             <input type="text" name="id" id="id" value="" /></td>>
          </label></td>
        </tr>
        <tr>
          <td height="23"><label> </label>
              <div align="center">
                <input type="submit" name="保存" id="保存" value="保存">
                <label></label>
              </div></td>
        </tr>
      </table>
    </td>
    <td width="34" valign="top">&nbsp;</td>
  </tr>
 </form></table>
</body>
</html>


如何在“value=""”里面取到iframe的值啊,,急,求大神们解答

回复列表 (共1个回复)

沙发

用javascript呀,

在picup1.asp里写点代码就好了,
parent.getElementById("外面的表单id").value=document.getElementById("里面的表单id").value

我来回复

您尚未登录,请登录后再回复。点此登录或注册