日期:2014-05-17  浏览次数:20411 次

获取JS选择到的多个ID,传参数跳转到PHP页面
现在我已经用JS把选择到的ID保存到COOKIE中了,怎样获取到这些ID,(有可能是2个或者3个ID)而且我要通过按钮进行传值到PHP页面
本人菜鸟
这个按钮
HTML code

<input name="" id="u427" type="button" 
class="hand fL" disabled  value="开始对比" onclick="window.open('compare.php?hotel_id={{$hotel.HotelId}}')"; />



------解决方案--------------------
探讨
现在我已经用JS把选择到的ID保存到COOKIE中了,怎样获取到这些ID,(有可能是2个或者3个ID)而且我要通过按钮进行传值到PHP页面
本人菜鸟
这个按钮HTML code

<input name="" id="u427" type="button"
class="hand fL" disabled value="开始对比" onclick="window.open('compar……