<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Simple Form Processor</title>
</head>
<body>
<?php 

if ( $_POST )
{
    echo( "<h1>Form Processed</h1>" ) ;

    $email_addr = $_POST[ 'email' ] ;

    echo( "<p>An email will be sent to: <strong>" .
        $email_addr . "</strong></p>" ) ;
}
else    // GET
{
    echo( "<h1>No form data to process</h1>" ) ;
}

?>
</body>
</html>