关于如何在不使用 PHP 中的表单的情况下将点击的数字从数组传递到另一个页面的任何想法?

Any idea on how to pass a a clicked number from an array to another page without using forms in PHP?

知道如何在不使用 PHP 中的表单的情况下将数组中的点击数字传递到另一个页面吗? 我想从数组中抓取数字并将其用于第二页的计算。

使用$_GET方法。

尝试,<a href="another_page.php?value=myvalue" class='btn btn-default style-as-button'>My Button</a>

然后在 another_page.php 检查 $_GET['value']

if (isset($_GET['value'])) {
 // do some logic
}