PHP在彈框中獲取foreach中遍歷的id值并傳遞給地址欄
更新時間:2017年06月13日 10:50:33 作者:yangzailu1990
這篇文章主要介紹了PHP在彈框中獲取foreach中遍歷的id值并傳遞給地址欄的相關資料,需要的朋友可以參考下
1.php有時候我們需要再彈框中獲取foreach中遍歷的數(shù)據(jù)(例如id),在彈框中點擊按鈕并傳遞給地址欄跳轉。那么應該怎么做呢。
2. 點擊取現(xiàn)按鈕,如果沒有設置密碼->彈框
3. 點擊去設置,把用戶名通過地址欄傳遞給別的頁面。
4.使用onclick事件,把參數(shù)charge傳遞給function函數(shù)。function為彈窗函數(shù)。
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>該借款人未設置交易密碼,請設置交易密碼后取現(xiàn)</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值并傳遞給地址欄,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對腳本之家網站的支持!
您可能感興趣的文章:
相關文章
php fsockopen解決辦法 php實現(xiàn)多線程
有沒有辦法在php中實現(xiàn)多線程呢?假設你正在寫一個基于多臺服務器的php應用,理想的情況時同時向多臺服務器發(fā)送請求,而不是一臺接一臺??梢詫崿F(xiàn)嗎?回答是當然可以,下面看解決方法2014-01-01