There are a couple of ways of doing that:
You can include the page directly from the script with the include command. If you want to redirect to a new page you can do that with the header() function.
if ($_GET['graph_type']=='barGraph')
# go to page1
header("Location: http://www.somesite.com/some_path/some_page.php");
else if ($_GET['graph_type']=='lineGraph)
# go to page2
include("some_page2.php");
else if ($_GET['graph_type']=='pieGraph)
# go to page3
include("some_page3.php");
Including a page will bring it into the current script's execution, if the included page contains PHP, which must be delimited with <?php ?>, its variables and the variables of the currently executing script will be as one, mingled and contained in the same namespace and any output from the included file will follow output from the script including it, if any. If you redirect using header() an entirely new request will be made.
http://www.php.net/header
http://www.php.net/include
: )
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::