【发布时间】:2018-12-05 16:07:38
【问题描述】:
我想得到一个建议。我如何在 PHP 中创建一个带有计划的页面,例如。 Plan 1 mounths、plan 3 mounths 和 plan 6 mounths,客户可以在哪里选择其中之一,然后转到结帐页面?非常感谢:)
【问题讨论】:
标签: php checkout membership
我想得到一个建议。我如何在 PHP 中创建一个带有计划的页面,例如。 Plan 1 mounths、plan 3 mounths 和 plan 6 mounths,客户可以在哪里选择其中之一,然后转到结帐页面?非常感谢:)
【问题讨论】:
标签: php checkout membership
多多,
现在您只需要一种脚本来处理输入并执行您想做的任何事情。例如PHP。
这是一个form,它接受一些用户输入/选择并将其发送到服务器。
<form method="POST" action="?">
<label>
<input name="plan" type="radio" value="1" checked="checked"/> Plan 1 mounth
</label>
<br/>
<label>
<input name="plan" type="radio" value="3"/> plan 3 mounths
</label>
<br/>
<label>
<input name="plan" type="radio" value="6"/> plan 6 mounths
</label>
<br/><br/>
<input type="submit" value="go to checkout ">
</form>
编辑: 为输入添加值
【讨论】:
for 和 id 的情况下执行 shorthand - 隐式关联