只是想知道是否有可能使用PHP在字符串中包含这么多特殊字符来编写链接按钮。
$link='index.php?topic=transactions&content=transaction_adjustment&tx_number='.$tx_number;
echo '<button type="button" onclick="window.location.href="'.$link.'"">Adjust</button>';
只是想知道是否有可能使用PHP在字符串中包含这么多特殊字符来编写链接按钮。
$link='index.php?topic=transactions&content=transaction_adjustment&tx_number='.$tx_number;
echo '<button type="button" onclick="window.location.href="'.$link.'"">Adjust</button>';
它应该工作。如果它是合法的URL链接,那么它应该可以工作。
在浏览器中进行测试,看看是否可以将您带到指定位置。