php
2013-11-03 44 views 0 likes 
0
if($_GET){ 
    $way = 'theme/page/'; 
    $extension = '.php'; 
    $content = $yol . strip_tags(trim($_GET['sayfa'])) . $uzanti; 
    require_once "$content"; 
    } 

if($_GET){ 
     $way = 'tema/information/'; 
     $extension = '.php'; 
     $content = $yol . strip_tags(trim($_GET['information'])) . $uzanti; 
     require_once "$content"; 
     } 

我有GET方法的兩種不同的形式。我怎樣才能在一個頁面上同時檢查。雙GET方法路由器問題

回答

0

你可以試試這個,

添加isset($ _ GET [ 'sayfa'])與isset($ _ GET [ '信息'])的個人條件。

 if(isset($_GET['sayfa'])){ 
     $way = 'theme/page/'; 
     $extension = '.php'; 
     $content = $yol . strip_tags(trim($_GET['sayfa'])) . $uzanti; 
     require_once "$content"; 
    } 

    if(isset($_GET['information'])){ 
      $way = 'tema/information/'; 
      $extension = '.php'; 
      $content = $yol . strip_tags(trim($_GET['information'])) . $uzanti; 
      require_once "$content"; 
    } 
+0

aa:D我試過了但我忘了輸入isset xD非常感謝你 –

相關問題