<?
if ($submit) // the form has been submitted
{
echo 'you have submitted the fotm!';
}
else
{
echo '<FORM method="post" action="'.$PHP_SELF.'">
<INPUT type="hidden" name="submit" value="yes">
INSERT YOUR FORM STUFF HERE
<INPUT type="submit" value="send this form now">
</FORM>';
}