Well here's what I have in my head

.
The cgi file was going to be called displayme.cgi or something...
Inside that file I'm going to include the html skeleton of my page.
Like for example the html file will read:
<html>
<head>
<title>$PageTitle</title>
</head>
<body bgcolor="$BGColor" Text="$TextColor">
<p>$Paragraph_1</p>
<p>$Paragraph_2</p>
</body>
</html>
What I could do is hard link a file using this command to input the data:
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"
; # Get the script location: UNIX / or Windows /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"
; # Get the script location: Windows \
require "whatever.file";
};
And that file will have commands like:
$PageTitle="Welcome to my webpage!";
$BGColor="#FFFFFF";
$TextColor="#000000";
$Paragraph_1="Whatever...";
$Paragraph_2="Whatever...";
What will then happen is the data from the whatever.file will be plugged into the displayme.cgi file and display the html on the browser... Follow so far?
No what I want to do is not use a hard coded file in the "require" section... I want to be able to have the file required be determined by the command line, like so:
http://www.yoursite.com/displayme.cgi?use=whatever.file
Something like that... This way I can use any file that has those parameters in it.
Let me know if and how this can be done in CGI, PHP or ASP.
Thanks!