PHP在弹框中获取foreach中遍历的id值并传递给地址栏

 更新时间:2017年6月20日 22:11  点击:2175

1.php有时候我们需要再弹框中获取foreach中遍历的数据(例如id),在弹框中点击按钮并传递给地址栏跳转。那么应该怎么做呢。

2. 点击取现按钮,如果没有设置密码->弹框

3. 点击去设置,把用户名通过地址栏传递给别的页面。

4.使用onclick事件,把参数charge传递给function函数。function为弹窗函数。

5. 把username值传递过来。并给“去设置”赋值herf属性。

6.

<div class="mask" ></div>
 <div class="mess">
   <div style="text-align:left;height:50px;line-height:50px;background-color:#3399CC">
   <span style="padding-left:10px;display:block;font-size:18px;">提示<img class="close_window" src="/images/back_img/close.png" style="height:25px;float:right;display:inline-block;cursor:pointer;margin-top:12px;margin-right:10px;"></span>
   </div>
   <div style="width:100%;height:50px;line-height:50px;font-size:17px;margin-top:10px;">  
    <span>该借款人未设置交易密码,请设置交易密码后取现</span>
   </div>
   <div style="height:100px;width:100%;margin-top:20px;text-align:center;">
     <p>
       <a style="width:122px;height:42px;line-height:42px;background-color:#1D8CBC;color:#FFF;display:inline-block;cursor:pointer;border-radius:4px;text-align:center;margin-left:180px;" class="btn1">  
        <span >去设置</span>
       </a>
     </p>
   </div>
 </div>

以上所述是小编给大家介绍的PHP在弹框中获取foreach中遍历的id值并传递给地址栏,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!

[!--infotagslink--]

相关文章