only the first header location command will processed.. header goes to another location, where there is no more header location functions.
becouse it goes to another page.
and you speak abot variables in a link, that is a GET method you pass a value.
you can reload the page with this line:
<META HTTP-EQUIV=REFRESH CONTENT=120> and 120 is in seconds
anyway: store the links in session, and create an iframe page,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<META HTTP-EQUIV=REFRESH CONTENT=120>
<title>Untitled Document</title>
</head>
<body>
<? session_start();
if($_SESSION["site"]=="")
$site="http://........................";
if($POST["textfield"])
{
$SESSION["site"]=$_POST["textfield"];
}
?>
<form name="form1" method="post" action="">
<input type="text" name="textfield">
<input type="submit" name="Submit" value="Submit">
</form>
<?
print $SESSION["site"];
print '<IFRAME name=main align=top marginWidth=0 marginHeight=0
src="'.$SESSION["site"].'" frameBorder=0 width=800
height=400> ......some message if the browser dont know iframe technology.....</IFRAME>';
?>
</body>
</html>