fork download
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. </head>
  7.  
  8. <body>
  9. <a href="index.php?p=all_activities">Tüm etkinlikler </a>
  10. <a href="index.php?p=all_posts">Tüm Gönderiler</a>
  11. <?php
  12. $sayfa = $_GET['p'];
  13. if($sayfa == 'all_activities'){
  14. echo '<h1>Tüm etkinlikler</h1>';
  15. } elseif($sayfa == 'all_posts</h1>'){
  16. echo '<h1>Tüm Gönderiler';
  17. } else {
  18. echo '<h1>Ana Sayfa</h1>';
  19. }
  20. ?>
  21. </body>
  22. </html>
Success #stdin #stdout #stderr 0.01s 20520KB
stdin
Standard input is empty
stdout
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>

<body>
<a href="index.php?p=all_activities">Tüm etkinlikler </a>
<a href="index.php?p=all_posts">Tüm Gönderiler</a>
<h1>Ana Sayfa</h1></body>
</html>
stderr
PHP Notice:  Undefined index: p in /home/a3Wy7e/prog.php on line 12