hi,
check if this is what u need...well if not, please elborate further...
<head>
</head>
<body>
<form method="post" action="<?php echo $PHP_SELF; ?>" method=POST>
<input type="text" size="20" name="input">
<input type="submit" name="tes" value="teskesatu">
</form>
<?php
// $PHP_SELF is a PHP variable that is abs.name of the file itself
echo $HTTP_POST_VARS['tes'];
//first time it will echo nothing..next time it echos First..
if (empty($HTTP_POST_VARS['tes'])){
echo "nothing";
//this part is echoed when it is loading for the first time...
}
if($HTTP_POST_VARS['tes']=='teskesatu'){
echo "First";
//this part when the form is posted
}
?>
</body>
regs,
sgb.