The stuff after the ? is stored in an environment variable called query_string. To store what's in the query_string to a variable, you can do this:
$variable=$ENV{'QUERY_STRING'};
By using an IF statement along with the query_string, you can go to a corresponding subroutine. Something like this:
$query=$ENV{'QUERY_STRING'};
if ($query eq "main") {
&main;
}
if ($query eq "contact") {
&contact;
}
-Ryan Palmer







Bookmarks