<?php
if(array_key_exists("myname",$_POST )&&($_POST['myname'])){
	print("Hallo $_POST[myname]");
} else
echo<<<_HTML
	<table>
		<form method="post" action="$_SERVER[PHP_SELF]">
		<tr>
			<td>Ihr Name:</td>
			<td><input type="text" name="myname" value=""></td>
		</tr>
		</tr>
			<td>&nbsp</td>
			<td align=right><input type="submit" value="Sag Hallo"></td>
		</tr>
		</form>
	</table>
_HTML;
?>