Doesn't the include require that the included document contain only a portion of HTML? ie. it should be the contents of the body, but not actually include header tags.

This whole mechanism has to work with pages that already exist and that are usable from other standard links on a web site. So while I can do anything I want in the PHP, I can't modify the existing web pages that are to be displayed.

Here is what I came up with - which is working right now. The file is called "index.php" and it sits in a subfolder on my site. So you can call the page like this: http://www.mypocket.com/auto/?make=acura (it's not actually on my site right now)


<html>

<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
</head>

<body bgcolor="white" text="black" leftmargin="5" marginheight="3" marginwidth="5" topmargin="3">

<?php

$prod = strtolower ($prod);

switch( $make )
{
case "mazda":
header("Location: http://www.mysite.com/cars/mazda.html");
break;

case "acura":
header("Location: http://www.mysite.com/cars/acura.html");
break;

case "nissan":
header("Location: http://www.mysite.com/cars/nissan.html");
break;

default:
break;
}


?>

</body>

</html>


The default case just causes the page to sit there, I know. Alternately I can just make that point to a main page. DOesn't matter since access to this php would be fr the sole purpose of my app.

Bruno
_________________________
Bruno
Twisted Melon : Fine Mac OS Software