<label for="step0-1" class="pick-item met">
<input class="pick-item__input" type="radio" name="step0" id="step0-1" value="металл"><span>металл</span>
</label>
<label for="step0-2" class="pick-item met">
<input class="pick-item__input" type="radio" name="step0" id="step0-2" value="дерево"><span>дерево</span>
</label>
<label for="step0-3" class="pick-item met">
<input class="pick-item__input" type="radio" name="step0" id="step0-3" value="пластик"><span>пластик</span>
</label>
<?php
$step0 = stripcslashes($_POST['step0']);
mail('mail@mail.ru', $subject, $step0, $headers);
?>
如何选择多个input
并进入php?如果更改radio
为checkbox
,则仅发送最后一个value
使用复选框,您需要将输入的名称从更改
name="step0"
为name="step0[]"
,然后$_POST['step0']
数组将位于