'; // PHP script // Check if post variable 'done' has a value if (isset($_POST['done'])) { // if yes, print content of 'text' variable $text = $_POST['text']; print "

You typed $text

"; } else // if not, display the form { print '

Text input box:

// set hidden variable to arbitrary value
'; } // Print HTML footer print ' '; ?>