Jump to content

involve other php-file by condition


fluidsharp

Recommended Posts

I'm glad you found your solution :).

 

Just a note on security;

 

Never do this:

<?php

include($_POST['filename']);

?>

 

Instead do this:

<?php

Switch($_POST['filename']){
   default:
      include('index.php');
   break;
   
   case 'file1':
      Include('path/to/file1.php');
   break;
}
?>

 

I'm sure you will understand why :P

 

-CB-

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.