<html>
<head>
    <title>Sample web form</title>
    <link href="//yorktown.cbe.wwu.edu/sandvig/mis314/assignments/style.css" rel="stylesheet" type="text/css">
</head>
<body>
    <div class="pageContainer centerText">

        <h2>Hello Form</h2>
        <hr />

        <form>
            <p>Please enter your name:</p>
            <input type="text" name="name" autofocus>
            <input type="submit" value="Submit Name">
        </form>

        <?php
        //Retrieve name from querystring. Check that parameter
        //is in querystring or may get "Undefined index" error
        if (!empty($_GET['name']))
        {
            $name = $_GET['name'];
            echo "<h1> Hello $name";
        }
        ?>
    </div>
</body>
</html>
