如何将按钮状态和变量传递到 wordpress 中的另一个页面?

How do I pass button state and variable onto another page in wordpress?

我创建了一个 wordpress 网站,并有 4 个按钮显示不同的金额。 我想保存选择了哪些按钮。 当我点击提交按钮时,我希望它使用那个数字。

        <h2>Amount   </h2>      
        <a href="#" role="button">
                    .00
                </a>
        <a href="#" role="button">
                    0.00
                </a>
        <a href="#" role="button">
                    .00
                </a>
        <a href="#" role="button">
                    8.00
                </a>
        <a href="#" role="button">
                    Submit
                </a>

这就是我的全部,我不知道我的下一步。

使用实际表格怎么样?

<h2>Amount</h2>

<form action="" method="get">


    <input id="51" type="radio" name="amount" value="51">

    <label for="51">.00</label>


    <input id="110" type="radio" name="amount" value="110">

    <label for="110">0.00</label>


    <input id="65" type="radio" name="amount" value="65">

    <label for="65">.00</label>


    <input id="278" type="radio" name="amount" value="278">

    <label for="278">8.00</label>



    <input type="submit">


</form>

在这里你可以如何设计它: https://jsbin.com/boxifiguqo/2/edit?html,css,output