<?php

// your code goes here
if ('POST' == $_SERVER['REQUEST_METHOD']) {
    print "HELLO, " . $_POST['name'];
} else {
    print<<<_HTML_
    <form action="$_SERVER[PHP_SELF] method = "post">
        Your name: <input type="text" name = "name">
        <input type="submit" value = "SAY HELLO">
    </form>
_HTML_;
}