<script type="text/javascript" language="javascript">
function OK(){    var UpFileName = document.hhh.pic.value;
    if (UpFileName==""|| UpFileName=="http://"){
         alert("请先上传图片文件!");
       //document.hhh.pic.focus();//
       return false;
       }
        if (UpFileName=="None"){
        window.returnValue = null;
    }else{
        window.returnValue = UpFileName+'|'+UpFileName;
    }
    window.close();
}</script><form name="hhh" action="">
<input type="hidden" name="pic" id="pic" value="dd" readonly="" /><td align="center" >&nbsp;选择图片:</td><td><iframe name="I1" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" width="200" height="22" src="upload.php?File_systype=1&DYType=2&FForm=hhh&FObj=pic"></iframe></td>
</form><input type="submit" value="确定插入" id="Ok" onclick="OK()" />upload.php的返回的值如何传给hidden input呀

解决方案 »

  1.   

    document.getElementById('pic').value = php返回值
      

  2.   

    document.getElementById('pic').value 
    你的upload.php是哪个页面?
      

  3.   

    document.getElementById('pic').value = php返回值
      

  4.   

    echo "<script language="javascript">document.getElementById("pic").value="php返回值";</script>";
      

  5.   


    <script language='JavaScript'>window.parent.document.all.pic.value="返回值";</script>