hrm...this code looks familiar... 😉
try this. make a new file called form.php
put this in it:
<form action="<?=$PHP_SELF?>" method="POST">
<input type="text" name="test" value="<? if (isset($_POST['test']) && !empty($_POST['test'])) { echo $_POST['test']; } ?>">
<input type="submit" value="submit">
</form>
and then access it. change the textbox, and submit it, see if it works.