[Gllug] OT - simple HTML query

Russell Howe rhowe at siksai.co.uk
Mon Aug 1 22:29:25 UTC 2005


On Mon, Aug 01, 2005 at 01:48:57PM +0100, James McGuigan wrote:
> My usual system for doing templates in PHP is to declare a set of variables 
> in the called file (index.htm), such as  $title, $subtitle, $content  and 
> so on, include the main template file, which is a HTML file with embedded 
> php tags to print out those variables in the correct place.

Note that this is horrifically vulnerable to cross-site-scripting if you
have register globals turned on.

-- 
Russell Howe       | Why be just another cog in the machine,
rhowe at siksai.co.uk | when you can be the spanner in the works?
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list