<html>
<body>
	<?php
	if ($_SERVER["REQUEST_METHOD"] == "GET") { ?>
		<form action="http://166.66.109.173/Examples/expform.php" method="post">
			<div>
			Base: <input name="base" type="text" /> <br/>
			Exponent: <input name="exp" type="text" /> <br/>
			<input type="submit" value="Calculate" />
			</div>
		</form>
	<?php }
	else if ($_SERVER["REQUEST_METHOD"] == "POST") {
		$base = $_POST["base"];
		$exponent = $_POST["exp"]; ?>
		<strong>
		<?= "$base raised to the $exponent is " . pow($base,$exponent) ?>
		</strong>
	<?php } ?>
</body>
</html>
