如何使用php [关闭]获取单选按钮数据

<input type="radio" id="radio1" name="radio"><label for="radio1">Section 1 </label>
<input type="radio" id="radio2" name="radio"><label for="radio2">Section 2 </label>
<input type="radio" id="radio3" name="radio"><label for="radio3">Section 3 </label>
<input type="radio" id="radio4" name="radio"><label for="radio4">Section 4 </label>
<input type="radio" id="radio5" name="radio"><label for="radio5">Section 5 </label>
if (radiobuttun == section1)
  {
  include ("file1.php")
  }
elseif (radiobuttun == section2)
  {
  include ("file2.php")
  }
  .
  .
  . -->

Assuming the form is submitted via POST, the variable you're looking for is $_POST["radio"].