按钮不做任何点击.如何来

Button not doing anything on click. How come?

本文关键字:任何点 按钮      更新时间:2023-09-26
echo "<tr><td colspan ='2'><center><input type='submit' value='Reply' onClick = "window.open = 'post_reply.php?cid=".$cid." &tid =".$tid."' /">";

按钮不执行任何操作。

你的字符串引号错误,你的第二个双引号后on click =终止字符串,我还没有测试过我的解决方案,但你需要的东西像(下面)

如果它确实是字符串

的一部分,则需要转义双引号
echo "<tr><td colspan ='2'><center><input type='submit' value='Reply' onClick='window.open('"post_reply.php?cid=$cid&tid=$tid'")' />";