Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
を使用してPHPで変数を渡すことは可能onclick="location.href"ですか?
onclick="location.href"
href のように
echo "<a href='reply1.php?r_username=".$rows['comment']."&prod_id=".$row['prod_id']."' class='reply_button'> REPLY </a> ";
この例をソリューションに使用してください
window.location.href = "myphpfile.php?one=" + one + "&two=" + two;
ajaxリクエストが必要な場合:
$.ajax({ url: "myphpfile.php", method: 'get', data : {one:"one",two:"two"}, success:function() { alert("hi to all"); });