<?php echo ' <tr> <td align="center" class="block"> <form name="post" action="shoutbox.php" method="POST" target="sb"> <table style="border: 1px solid #b0b0b0;" align="center" cellspacing="0" cellpadding="0" border="0" width="'.$width.'" > <tr> <td class="title" align="center" background="theme/Klubowa/gfx/info.gif" height="25"><b>ShoutBox</td> </tr> <img SRC="theme/Klubowa/gfx/separ.gif" width="1" height="1"></td> </tr> <tr> <td><iframe style="border: 0px;" name="sb" src="shoutbox.php" width="'.$width.'" height="'.$height.'"></iframe></td> </tr> <tr> <td class="sb_wiad" align="center">Wiadomość: <input class="sb_input" name="text" type="text" size="70%"> <input class="sb_input" type="submit" name="sbsub" value="Wyślij"> <input class="sb_input" type="submit" name="submit" value="Odśwież"></td> </tr> </table> </form>'; ?>
Kod ten wyświetla mój ShoutBox za pomocą
tego inputu wysyłam do pliku shoutbox.php wiadomość. Problem polega w tym, że po kliknięciu wyślij, dane się wysyłają, ale pole input nie czyści się, zostaje w nim tekst. Jak temu zaradzić?
<?php <input class="sb_input" name="text" type="text" size="70%"> ?>