My name is:

Code:

<html>
<head>
<title>PHP TEST YAHHH</title>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
<body>

<div class="topbar">
<?php
include 'navbar.php';
?>

</div>

<?php

    
    //small form playground
    

    
    if (isset($_POST['myName']))
    {//show post data
    
        $myName = $_POST['myName'];
        echo 'My name is '.$myName.'.';
        
    }
    else
    {//show form
    
        echo '
        <form action="ex053.php" method = "post">
        My name is: <input type = "text" name = "myName"><br>
        <input type = "submit">
        </form>
        ';
        
    }//end if
    
    echo '<br>';
    
?>

<div class="codebox">
<h3>Code:</h3>
<?php
highlight_file("ex053.php");
?>
</div>

</body>
</html>