<img src="img/cont_tbl03_icon03.gif" width="18" height="18" onClick="javascript:window.open('tt_player.php?mu_lists=
85,69,68,67,66,65,64,63,62,61,60,59,70,71,72,83,82,81,80,79,78,77,76,75,74,73,58,57,38,37,36,35,34,33,32,31,30,29,44,39,42,43,56,55,54,53,52,51,50,49,48,47,46,45                    
                    
                    ','SmallWindow','width=412,height=590,scrollbars=no')" style="cursor:hand">
<img src="img/cont_tbl03_icon03.gif" width="18" height="18" onClick="javascript:window.open('tt_player.php?mu_lists="
85,69,68,67,66,65,64,63,62,61,60,59,70,71,72,83,82,81,80,79,78,77,76,75,74,73,58,57,38,37,36,35,34,33,32,31,30,29,44,39,42,43,56,55,54,53,52,51,50,49,48,47,46,45   
    
  "','SmallWindow','width=412,height=590,scrollbars=no')" style="cursor:hand">"85,69,68,67,66,65,64,63,62,61,60,59,70,71,72,83,82,81,80,79,78,77,76,75,74,73,58,57,38,37,36,35,34,33,32,31,30,29,44,39,42,43,56,55,54,53,52,51,50,49,48,47,46,45 "
这是一个变量不是数组:
请问我这么传值对吗?我传一个值时会打开新窗口,
但传像上面一样多个值的时候为什么不启动窗口?
这个代码哪里错了?谢谢~请详细一些

解决方案 »

  1.   

    用AJAX的Post提交方式吧。
    Post提交的数据量比Get方式提示交的数据量大N倍。
      

  2.   

    如果用jQuery的话很简单:
    $.post("'tt_player.php",{mu_lists:"85,69,68,67,66,65,64,63,62,61,60,59,70,71,72,83,82,81,80,79,78,77,76,75,74,73,58,57,38,37,36,35,34,33,32,31,30,29,44,39,42,43,56,55,54,53,52,51,50,49,48,47,46,45 "},function(){
       alert("提交成功。");
    });
      

  3.   

    呵呵,别人不用Jquery,为什么一定要用Jquery,URL提交可以满足要求,URL传值的上限值远远比你这个要长,稍微改改即可: <img src="img/cont_tbl03_icon03.gif" width="18" height="18" onClick="javascript:window.open('test.php?mu_lists=85,69,68,67,66,65,64,63,62,61,60,59,70,71,72,83,82,81,80,79,78,77,76,75,74,73,58,57,38,37,36,35,34,33,32,31,30,29,44,39,42,43,56,55,54,53,52,51,50,49,48,47,46,45','SmallWindow','width=412,height=590,scrollbars=no')" style="cursor:pointer">我测了一下,可以的。test.php:echo "mu_lists string is:".$_GET['mu_lists'];