hello
how do u mean add it as an outside variable ?
name is what it gets from http get variable ...
oh why am speaking it , here is the code line
<?
require ("imdbsearch.class.php");
$search = new imdbsearch ();
$search->setsearchname ($HTTP_GET_VARS["name"]);
echo "<HTML><HEAD><TITLE>search</TITLE></HEAD><BODY>";
$results = $search->results ();
foreach ($results as $res) {
echo "<a href=imdb.php?mid=";
echo $res->imdbid();
echo ">";
echo $res->title();
echo "(".$res->year().")";
echo "</a> ";
echo " <a href=\"http://us.imdb.com/title/tt";
echo $res->imdbid();
echo "\">imdb page</a>";
echo "<br>\n";
}
echo "</BODY></HTML>";
//echo $search->page;
?>
if you want check the normal excuted code at
http://www.tchatting.com/forum/imdbsearch.php?name=rock
when we create a web template the code new link will look like
http://www.tchatting.com/forum/view....arch&name=rock
The idea would be great if the results are passed within the template itself !