asp文件的值传递

大家好,最近在做东西,做的是一个网站,后台有一个功能是上传图片的功
上传图片的那个地方是用的是<iframe></iframe>这个嵌入窗口,里面链接一个网页,这个网页就是上传图片的主要内容,
名字叫upload_tour.asp,它在toureidt.asp页面内。
我就想问一下,upload_tour.asp上传图片之后,后面有段代码
response.write "<script>parent.Form1.PhotoName.value='"&FileName&"';</script>"

toureidt.asp也有段代码
<form name="Form1" method="post" action="">
            <table width="100%" border="1" cellspacing="0" cellpadding="5" class="tableedit">
                <tr>
                    <td width="100" align="right">图片标题:</td>
                    <td width="*"><input type="text" name="Title" size="40"></td>
                </tr>
                <tr>
                    <td align="right">上传图片:<input type="hidden" name="PhotoName"></td>
                    <td><iframe name="ad" frameborder=0 width=100% height=30 scrolling=no src="../s_upload/Upload_Tour.asp?TourID=<%=ID%>"></iframe></td>
                </tr>
                <tr>
                    <td height="40"></td>
                    <td><input type='submit' value='确  定' name='Submit2' class='input_s s_but1'></td>
                </tr>
            </table>
            <input type="hidden" name="ID" value="<%=ID%>">
            <input type="hidden" name="action" value="editnews">
            <input type="hidden" name="PhotoAction" value="new">
            <input type="hidden" name="EditAction" value="<%=EditAction%>">
            <input type="hidden" name="Form_Action" value="true">
            </form>
            <%
            end if
            %>
            </td>
        </tr>
    </table>
请问这个有没有错啊~我知道她是想把upload_tour.asp的值传入tour_eidt.asp这个页面,

posted on 2013-06-20 18:45  青峰123  阅读(270)  评论(0编辑  收藏  举报

磁翻板液位计 上海中央空调