Показать сообщение отдельно

Спасибо
  #3  
Старый 14.12.2008, 12:38
Lionis
Познающий
Регистрация: 13.12.2008
Сообщений: 75
Провел на форуме:
128428

Репутация: 20
Lightbulb Спасибо

Цитата:
Сообщение от oRb  
PHP код:
<?php
if(get_magic_quotes_gpc())
    
$_POST array_map('stripslashes'$_POST);
if(
$_POST['content']){
$fh fopen("file.txt""w");
fwrite($fh$_POST['content']);
fclose($fh);
}
if(
$_POST['content2']){
$fh fopen("file2.txt""w");
fwrite($fh$_POST['content2']);
fclose($fh);
}
?><form method=post>
<textarea name=content cols="100" rows="10"><?php echo file_get_contents("file.txt"); ?></textarea>
<textarea name=content2 cols="100" rows="10" id="content2"><?php echo file_get_contents("file2.txt"); ?></textarea>
<input type=submit value="Сохранить">
</form>
---
Большое спасибо , все получилось !