|
|
|
| Здравствуйте!! Как делать что/бы отправленный текст через форму, сразу же появлялся? а то я уже везде просмотрела и ничего не ношла, помогите ПЛИЗ!
<?php
$txt= file_get_contents("msg.txt");
$txt = substr($txt, 0);
print $txt;
if(!empty($_POST))
{
$fd = fopen("msg.txt", "a");
$$_POST['msg'] = str_replace("<", "<", $msg);
$$_POST['msg'] = str_replace(">", ">", $msg);
$post = ">>>".$_POST['name']."||".$_POST['msg']."||
";
fwrite($fd, $post);
fclose($fd);
}
?>
|
| |
|
|
|
|
|
|
|
для: JESS
(10.03.2008 в 22:29)
| |
<?php
if(!empty($_POST))
{
$fd = fopen("msg.txt", "a");
$$_POST['msg'] = str_replace("<", "<", $msg);
$$_POST['msg'] = str_replace(">", ">", $msg);
$post = ">>>".$_POST['name']."||".$_POST['msg']."||
";
fwrite($fd, $post);
fclose($fd);
}
$txt= file_get_contents("msg.txt");
$txt = substr($txt, 0);
print $txt;
?>
|
| |
|
|
|