Witam.
Pisze skrypt czatu/shoutboxa, i pojawia sie problem, jak zrobić odświerzanie tego czatu tak żeby jak jestem w trakcie pisania nie kasowało mi tego.
<style type="text/css"> <!-- #contentbox { background: #E5E5E5; border:dotted; border-color:#000000; padding: 5px; width: 200px; height: 200px; overflow: auto; } ul#shoutboxmessage { margin: 0; padding: 0; list-style-type: none; color: #000000; font: normal 10px verdana,tahoma,arial; } .style2 {font-family: Tahoma; font-size: 10px; } --> </style> <?php // COPYRIGHT: (c) 2006 1Line Design / All Rights Reserved // LICENSE: <a href="http://www.gnu.org/copyleft.html" target="_blank">http://www.gnu.org/copyleft.html</a> GNU/GPL // AUTHOR: James Murphy <jamesmurphy@1linedesign.com> // SOURCE: <a href="http://www.1linedesign.com/" target="_blank">http://www.1linedesign.com/</a> $name = $_POST['name']; $message = $_POST['message']; $ip = $_POST['ip']; $maxlength = 150; if ($_POST['submit']) { if ($name == "") { } else if ($message == "") { } else if ($mlen > $maxlength) { } else { } } $query = "SELECT * FROM shoutbox ORDER BY id DESC LIMIT 20"; $name = $r['name']; $message = $r['message']; } ?> <strong>Nickname:</strong><br/> <input type="text" name="name" maxlength="20"><br/> <strong>Message:</strong><br/> <textarea name="message"></textarea><br/> <input type="submit" name="submit" value="Shout It!"> </form> </div>