This article mainly introduces PHP in the box to get the ID value of the traversal in foreach and pass to the address bar of the relevant information, the need for friends can refer to the following
1.php Sometimes we need to bounce the data that is traversed in the foreach box (for example, ID), click the button in the box and pass it to the address bar to jump. So what should we do?
2. Click the Withdraw button, if you do not set a password---box
3. Click Go to set, the user name through the address bar to other pages.
4. Use the OnClick event to pass the parameter charge to the function functions. function is a pop-up window.
5. Pass the username value over. And give the "go to set" Assignment Herf property.
6.
<p class= "Mask" ></p> <p class= "mess" > <p style= "text-align:left;height:50px;line-height:50px; Background-color: #3399CC "> <span style=" padding-left:10px;display:block;font-size:18px; " > Tip </span> </p> <p style= "width:100%;height:50px;line-height:50px;font-size:17px;margin-top:10px;" > <span> the borrower does not set the transaction password, please set the transaction password after withdrawal </span> </p> <p style= "Height:100px;width:100%;margin-top:2 0px;text-align:center; " > <p> <a style= "width:122px;height:42px;line-height:42px;background-color: #1D8CBC; color: #FFF;d isplay : inline-block;cursor:pointer;border-radius:4px;text-align:center;margin-left:180px; "class=" btn1 "> <span &G t; go to Settings </span> </a> </p> </p> </p>