I think I found out the problem.
Check it out this script is working as I need.I mean that it doesn't lose its contents when I come back.
<? if (1)
{
echo "Something";
echo "<form action=action.php method=Post>
Deli : <input type=text size=20 name=deli><br>
Yorum : <textarea name=yorum cols=20 rows=3></textarea>
<input type=submit value=\"Gönder\">
</form>
";
}
?>
But when I add this on the top of the page the page is reloaded for each time.
<?
//this damned thing caused all the trouble...
session_start();
if (1)
{
echo "Something";
echo "<form action=action.php method=Post>
Deli : <input type=text size=20 name=deli><br>
Yorum : <textarea name=yorum cols=20 rows=3></textarea>
<input type=submit value=\"submit\">
</form>
";
}
?>
Anyway using cookies doesn't cause any reloads. I think I 'd better use cookies instead of session functions.
And now I realize why there is no session function used in phpNuke and other good scripts.
Anyway, what do you think ? Do you aggree with me ?