是否可以使用onclick="location.href"
?
echo "<a href='reply1.php?r_username=".$rows['comment']."&prod_id=".$row['prod_id']."' class='reply_button'> REPLY </a> ";
答案 0 :(得分:2)
将此示例用于您的解决方案
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");
});