hello there,
well it is very easily done through something like this:
<?phpinclude_once $HTTP_SERVER_VARS['QUERY_STRING'].".inc";
?>
where ".inc" is extension of your files (if you're here I guess it would be ".php")
Or another way of doing that is:
<?php
$query_file=$HTTP_SERVER_VARS['QUERY_STRING'];
if($query_file=='main'){
$inc_page="main_page.html";
} elseif ($query_file=='body'){
$inc_page="body_page.html";
}
include_once $inc_page;
?>
it's your call which one to choose. First one is less of code whereas second one gives your more control and you don't have to show filenames.
Yeah and don't forget about security issues: check for anything other than alpha-numeric combination.
cheers,
AlCapone