[php]<html>
<head>
<title>Admin Panel</title>
</head>
<body>
<form action="edit.php" method="post">
Username: <input type="text" name="username" /><br>
Password: <input type="password" name="password" /><br>
Post id: <input type="text" name="postid" /><br>
<textarea lang="fa" name="mta" dir="rtl"><?
if (array_key_exists("pid", $_GET))
{
$f = file('post'.$_GET["pid"].'.html');
for ($i = 0; $i < count($f); $i++)
echo $f[$i];
}
?></textarea>
<input type="submit" value="Submit" /><input type="reset" value="Reset" />
</form>
</body>
</html>
[/php]
edit.php
[php]
<?
file_put_contents('post'.$_POST["postid"].'.html', $_POST["mta"]);
?>
[/php]
تو ایندکس هم میام به همون روشی که شما گفتین عمل می کنم ولی درست نشون نمیده.