Jump to content

setting varibles in the URL


joecooper

Recommended Posts

You don't define $module anywhere. It would be..... $_GET['module'].

 

Having said that, it is extremely insecure to simply include files in such a manor. At the very least, try...

 

<?php

  if (isset($_GET['module'])) {
    if (file_exists($_GET['module'] . '.php')) {
      include $_GET['module'] . '.php';
    }
  }

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.