-10
<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")
  }
  .
  .
  . -->
4

1 回答 1

2

假设表单是通过 POST 提交的,您要查找的变量是 $_POST["radio"]。

于 2013-04-29T18:13:19.087 回答