<?
if($_SERVER['REQUEST_METHOD'] == "POST"){
print_r($_POST);
}
else{
?>
<form action="<? echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="text" name="comment"><fieldset><legend>Vote if you like this page</legend><input type="radio" name="vote" value="Yes"> Yes <input type="radio" name="vote" value="No"> No</fieldset><input type="submit" value="submit"></form>
<?
}
?>