';
// 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 '';
}
// Print HTML footer
print '