Anonymous
public text v1 · immutable<html>
<body>
<?php
$hello = $_POST[hello];
if ($hello == ""){
$message = "Type a message.";
} else {
$message = "You said:";
}
echo $message;
echo "<br>";
echo $hello;
$echo "<br>";
?>
<form method="POST" action="<?php $_SERVER[PHP_SELF]; ?>">
<?php
echo "<br>";
?>
<table border="2">
<tr><td>Message: </td><td><textarea name="hello" cols="50" rows="5">
</textarea></td></tr>
<tr><td><input type="submit" name="submit" value="Post"></td></tr>
</form>
</table>
</body>
</html>