<link href="./css/form.css" rel="stylesheet" type="text/css" /> <title>Confirmation</title> <?php print '<meta http-equiv="refresh" content="60;URL="confirm.php?PID=' . $PID . '&choice=' . $choice . '">'; ?> </head> <body> <div class="wrap"> <div class="toggle"> <p class="m_text" align="middle"> <?php switch ($choice) { case 'feed': $amount = $_POST['range']; if ($amount <= $thisPok->getFoodNum()) { $thisPok->setFood($amount); } print "<br />You have successfully fed the pokemon XD<br /><br />"; print "<div class=\"btn_form\" align=\"middle\"><form>"; print "<input type=\"button\" align=\"middle\" value=\"Yeah!!\" onclick=\"window.open('', '_self', ''); window.close();\" />"; print "</form></div>"; break; case 'marry': $MarriageID = $_POST['marry']; $thisPok->marry($MarriageID); print "<br />You have successfully send out the engagement XD<br /><br />"; print "<div class=\"btn_form\" align=\"middle\"><form>"; print "<input type=\"button\" align=\"middle\" value=\"Yeah!!\" onclick=\"window.open('', '_self', ''); window.close();\" />"; print "</form></div>"; break; case 'work':