My html document has the following form:

```
<form action="PrimeNumber.php" method="post">
Enter a number to determine if it is a prime number: <input type="text" name="numb" size="10">
<input type="submit" value="Check for Primeness">
</form>

```

Edit: Using a different code now but can't get it to echo a statement no matter what I do. Anyone know how I can make it echo is a prime number or is not.

```
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    if (isset($_POST['numb'])) {
        $num = $_POST['numb'];

        function isPrime($num) {
            if($num == 1) {
                return false;
            }

            if($num == 2) {
                return true;
            }

            if($num % 2 == 0) {
                return false;
            }

            for($i = 3; $i <= ceil(sqrt($num)); $i = $i + 2) {
                if($num % $i == 0)
                    return false;
            }
            return true;
        }
    }
}
?>

```