小编Jür*_*uja的帖子

PHP返回错误的单选按钮值

我有它有两个值的单选按钮的一个问题,"po""jo",但PHP始终返回值"on".我怎样才能解决这个问题?

这是.html文件中的代码:

    <label for="fangspotted">A e keni pare qenin tim Fang?</label>
    Po <input id="fangspotted" name="fangspotted" type="radio" values="po"/>
    Jo <input id="fangspotted" name="fangspotted" type="radio" values="jo"/><br/>
Run Code Online (Sandbox Code Playgroud)

这是在.php文件中:

$fang_spotted = $_POST['fangspotted'];
Run Code Online (Sandbox Code Playgroud)

html php variables radio-button

0
推荐指数
1
解决办法
390
查看次数

标签 统计

html ×1

php ×1

radio-button ×1

variables ×1