First we will create a simple HTML form for the user to enter their current arena score. Then we will add the PHP to calculate the score. If no score is entered, our first few lines of PHP set the score to the default score of 1500.
<head>
<title>Arena Calculator</title>
</head>
<body>
<h2>Arena Calculator</h2>
<form action = "<?php echo $_SERVER["PHP_SELF"]; ?>"
method = "GET">
Enter Your Arena Score:
<input type = "text" name = "arena_score" size=5>
<input type = "submit" name = "Calculate Score"/>
</form>
<?php
//If there is no score entered, we will assume the default score of 1500
$arena_score = $_GET['arena_score'];
if ($arena_score == "")
{
$arena_score = 1500;
}

