2013-04-29 64 views
-9
<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") 
    } 
    . 
    . 
    . --> 
+0

米爾,這個問題已經被問及在這個網站和其他地方回答了幾十次。如果您更新您的問題以向我們展示您嘗試過的以及嘗試失敗的位置,我們可能會爲您的情況提供具體方向。 – 2013-04-29 18:13:22

回答

2

假設通過表單提交後,你要尋找的變量是$ _ POST [「單選」。