
04.02.2010, 23:38
|
|
Участник форума
Регистрация: 24.08.2009
Сообщений: 145
Провел на форуме: 285318
Репутация:
17
|
|
Типа этого что-то:
PHP код:
<?php
$otp=$_REQUEST['otp'];
$txt=$_REQUEST['txt'];
$file_txt="file.txt"; //путь к тхт файлу
if(isset($otp)){
$fopen=fopen($file_txt,"w");
fputs($fopen,$txt);
fclose($fopen);
header("location: http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']);
exit;
}
?>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.min.js"></script>
<a href="#" onclick="$('#form').toggle('fast')" class="none">Открыть/Закрыть</a>
<div id="form" name="form" style="display: none;">
<form name=forma method=post action=index.php>
<textarea name=txt rows=10 cols=40><?php @include($file_txt);?></textarea>
<input type=submit name=otp value=Сохранить>
</form>
</div>
</body>
|
|
|