<html><head><title><? print $searched; ?></title>...
<html><head></head><body><form method="post" action="masodik.php"><input type="hidden" name="keresett" value="<? print($searched); ?>"><input type="submit" name="subForm" value="Keres"></form></body>
<?if($_POST['subForm']){ $searched = $_POST['keresett'];}?><html><head><title><? print($searched); ?></title></head>
<html><head><title><? print($searched); ?></title></head>