I'm trying to get the echo statement to run when the submit button is pressed. I have a name for the submit button and I'm using that in the if statement but the code does not run when I press the submit button. Thanks in advance.
<!DOCTYPE html>
<!-- Week3_Landis.php -->
<!-- Jul 3, 2018 -->
<html>
<head>
    <title>Lab3 Landis</title>
</head>
<body>
    <table border = "1">
        <form>
        <tr><td><h1>Welcome to the Diamond Maker!</h1></td></tr>
        <tr><td>Enter the size of your diamond: <input type="number" name="diamondSize"></td></tr>
        <tr><td><input type="submit" name="submit" value="Submit"></td></tr>
        </form>
        <tr><td>
        <?php
        // Row to create diamond
        if (isset($_POST['submit'])) {
            echo "stuff";
        } // End if
        ?>
        </td></tr>
    </table>
</body>
</html>
 
     
     
     
    