rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://w3.org/1999/xhtml"xml:lang="en" lang="en"><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /><title> Orange Tree - PHP vershun </title></head><body><?php$treelife = TRUE;$oranges = 15;$height = 5;$water = 10;$orphans = 30;$age = 0;$pickedoranges = 0;function tree_modifier ($orangecheck, $watercheck, $orphan) { if ($orangecheck = TRUE) {$oranges = $oranges - 20; $pickedoranges = $pickedoranges + 20;}if ($watercheck = TRUE) {$water = $water + 30;}$age = $age + 1;$oranges = $oranges + 30;$water = $water - 10;$orphans = $orphans - $orphan;if ($oranges <= 10) {$height = $height + 20;}elseif ($oranges > 10 && $oranges <= 30) {$height = $height + 10;}else {$treelife = FALSE;} if ($water < 10 || $water > 300) {$treelife = FALSE;} }?><?phpif ($_POST['here'] = submitted) { tree_modifier( $_POST['orange'], $_POST ['water'], $_POST[starvorph]);} if ($treelife = TRUE) {echo "<p>Hello, welcome to the orange tree game, see your tree stats below:</p><li><ul> $age years old</ul><ul> $oranges oranges on the tree </ul><ul> $pickedoranges in your warehouse </ul><ul> $water units of water </ul><ul> $height foot tall </ul><ul> $orphans starving orphans </li>" ;}else { echo 'your tree is dead, good one numbnuts, but you did manage to make it to $age years old';}?><p> So, what do you want to do?</p><form action="orangetree.php" method="post">Harvest Oranges: <input type="checkbox" name="orange" /><br/>Water Tree: <input type="checkbox" name="water" /><br/>Feed Orphans: <select name="starvorph" /> <?php$range = range (1, 10);foreach ($range as $value) {echo "<option value=\"$value\">$value</option>\n";}?></select><br><input type="submit" value="Do it" /><input type="hidden" name"here" value="submitted" /></form></paste></html>