<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> 
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>Test - Form</title>
</head>
<body>



    <form method="post" action="IE7_returnKey.php">
        <p><input type="text" name="in_txt" maxlength="18" /><input type="submit" name="btn_submit" value="Enter something" /></p>
    </form>

    <div>
    
        <p>$_POST = <?php print_r($_POST); ?></p>
        
        <?php
        
if(isset($_POST['btn_submit'])){
            if(
trim($_POST['in_txt']) != ''){
                echo 
"<p style=\"border: 1px solid green; padding: 4px; width: 400px;\">You Entered: $_POST[in_txt]</p>";
            } else {
                echo 
"<p style=\"border: 1px solid red; padding: 4px; width: 400px;\">You didn't enter anything</p>";
            }
        }
        
?>
    </div>
    
    <p><a href="IE7_returnKey.phps" target="_blank">View the .phps</a></p>


</body>
</html>