Posted By

stavelin on 09/09/08


Tagged

php include caseswitch


Versions (?)

switch


 / Published in: Other
 

  1. <?php
  2.  
  3. $vis = $_GET["do"];
  4. switch ($vis)
  5. {
  6. case 'register':
  7. include ("includes/register.php");
  8. break;
  9.  
  10. case 'inspire':
  11. include ("includes/inspire.php");
  12. break;
  13.  
  14. case 'logout':
  15. include ("includes/logout.php");
  16. break;
  17.  
  18. case 'login':
  19. include ("includes/login.php");
  20. break;
  21.  
  22. case 'editUser':
  23. include 'includes/editUser.php';
  24. break;
  25.  
  26. default:
  27. include ("includes/velkommen.php");
  28. break;
  29.  
  30. }
  31. ?>
  32. and links like: please.php?do=register

Report this snippet  

You need to login to post a comment.