<?php
	$nt = 5;
	$not = 12;
	$nc = 5;
	$nfs = 2;
	$ish = 8;

	if(isset($_POST['nt']))
		$nt = $_POST['nt'];
	if(isset($_POST['not']))
		$not = $_POST['not'];
	if(isset($_POST['nc']))
		$nc = $_POST['nc'];
	if(isset($_POST['nfs']))
		$nfs = $_POST['nfs'];
	if(isset($_POST['ish']))
		$ish = $_POST['ish'];

	$params = 'not='.$not.'&nt='.$nt.'&nc='.$nc.'&nfs='.$nfs.'&ish='.$ish;

?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Danio Prototype</title>
</head>
<body bgcolor="#ffffff">

	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="640" height="480" id="danio" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="danio.swf?<?php echo $params; ?>" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="danio.swf?<?php echo $params; ?>" quality="high" bgcolor="#ffffff" width="640" height="480" name="danio" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
<br />

<form method="POST" action="danio.php">
Number of towers: <input type="text" name="nt" size="2" value="<?php echo $nt; ?>">(3-10)<br />
Stack height limit: <input type="text" name="not" size="2" value="<?php echo $not; ?>">(4-15)<br />
Initial stack height: <input type="text" name="ish" size="2" value="<?php echo $ish; ?>">(4-15)<br />
Number of colors: <input type="text" name="nc" size="2" value="<?php echo $nc; ?>">(2-7)<br />
Number of free spaces: <input type="text" name="nfs" size="2" value="<?php echo $nfs; ?>">(0-10)<br />
<input type="submit" value="Go for it!" name="B">
</form>

<br />
<br />
Idea by Fiddler, code by Myran
<br />
<br />
Heaviest
<table border="0" width="100%" height="20px">
<tr>
<td bgcolor="#ff0000"></td><td bgcolor="#00ff00"></td><td bgcolor="#0000ff"></td><td bgcolor="#ff00ff"></td><td bgcolor="#00ffff"></td><td bgcolor="#ffff00"></td><td bgcolor="#000000"></td>
</tr>
</table>
<p align="right">Lightest</p>

</body>
</html>
