Home > Backend Development > PHP Tutorial > 获取JS选择到的多个ID,传参数跳转到PHP页面,该如何处理

获取JS选择到的多个ID,传参数跳转到PHP页面,该如何处理

WBOY
Release: 2016-06-13 13:30:50
Original
1206 people have browsed it

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

HTML code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

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

Copy after login


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

class="hand fL" disabled value="开始对比" onclick="window.open('compar……
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template