<?php
$t = "\/";
$_POST = str_replace($t[0], '', $_POST);
if(@$_GET['mode']=="save")
{
if(strlen($_POST['name'])>0)
{
$file=fopen($path."123.txt","w");
fwrite($file,$_POST['name']);
fclose($file);
}
}
?>
<table border=0 width=100%>
<form name="9" action="index.php&mode=save" method="POST">
<tr><td>
<textarea cols=80 rows= 16><?=join("",file($path."123.txt"))?></textarea>
</td></tr>
<tr><td align="center"><input name="save" type="submit" value="Сохранить"></td></tr>
</form>
</table>
|