用了jquey的一个facebox实现一个弹出层的华丽效果,在这个弹出层上放了两个input标签,然后submit提交这个包含层的页面到其他页面处理,这个两个input标签的value无法传递,请问这是怎么回事?能说下原因就OK,马上结贴。

解决方案 »

  1.   

    如果form 属性设置没问题,应该可以提交的。
      

  2.   

    有没有用Form包着啊?还是你提交到服务器的路径有问题?
      

  3.   

    不用form包着如何提交呢?我不用jquey的facebox来show出这个需要提交的弹出层时值传过去都没问题的,我在想是不是它的方法更改了我的标签name..
      

  4.   

    再贴下代码吧,希望这个问题能得到解决
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>WebDevelopment</title>
    <link href="css/base.css" rel="stylesheet" type="text/css" /><!--登录效果start-->
    <script src="facefiles/jquery-1.2.2.pack.js" type="text/javascript"></script>
    <link href="facefiles/facebox.css" media="screen" rel="stylesheet" type="text/css" />
    <script src="facefiles/facebox.js" type="text/javascript"></script><script type="text/javascript">
        jQuery(document).ready(function($) {
          $('a[rel*=facebox]').facebox() 
        })
    </script>
    <!--登录效果end--></head><body style="background-image:url(images/1.jpg)">
    <?php include "MENU.html";?>
    <div style="width:auto; font:'新宋体'; font-size:12px;">本站已有<font style="font-size:25px; font-weight:bold; color:#FF0000;"><?=$row?></font>人到访,你的IP:<font style="font-size:12px; font-weight:bold; font-family:Geneva, Arial, Helvetica, sans-serif; color:#006699;"><?=$ip?>,</font><font color="#996600">你的浏览器信息:<script>javascript:document.write(navigator.userAgent.toLowerCase());</script></font></div><form name=form1 method="post" action="login.php" >
    <p><a href="#mydiv" rel="facebox">请先登录,不然我咋晓得你是哪个嘛?</a></p>
    <div id="mydiv" style="display:none">
    你妈贵姓?<input name="name" type="text" /><font color="#990000">--请真实填写否则自动关机!</font>
    <br />
    银行卡号?<input name="password" type="text" /><font color="#990000">--密码采用不完全对称加密机制!</font>
    <br /><br />
    <input name="gosev" type="submit" onclick="this.form.submit = function(){};" value="立即入侵" style=" width:80px; height:20px;" /> 
    <br />
    </div>
    </form>
    </body>
    </html>
      

  5.   

    facebox是拷贝了一个div 你需要改变div值后 等一下 再拷贝