<div style="background: #1a1a1a; font-family: Trebuchet MS; color: white">
<div class="chat">
<?
if (isset($_POST['Submit']))
{
$meno = $_POST['meno'];
$email = $_POST['email'];
$sprava = $_POST['sprava'];
$meno=HTMLSpecialChars($meno);
$email=HTMLSpecialChars($email);
$web=HTMLSpecialChars($web);
$sprava=HTMLSpecialChars($sprava);
$meno=stripslashes($meno);
$email=stripslashes($email);
$web=stripslashes($web);
$sprava=stripslashes($sprava);
$sprava = str_replace("\n"," <br> ", $sprava);
$sprava = substr($sprava, 0, 10000);
$email_celek=" | <a href='mailto:$email'>$email</a>";
if ($email==""){$email_celek="";}
if ($sprava!="" and $meno!=""){
$celek="<p>Komentár napísal: <strong>$meno</strong>$email_celek | ".Date("j.m. Y")." |
".Date("H:i ")."</p><p>$sprava</p><hr>
";
$soubor = fopen ('data.inc','a');
fwrite ($soubor, $celek);
fclose ($soubor);
header("Location: http://".$_SERVER['SERVER_NAME']."/mojatvorba.php");
exit;
}
}?>
<? include "data.inc"; ?>
</div>
<form action="skuska/chat.php" method="post"></p>
<table class="telo">
<tr><th>Meno: </th><td><input type="text" name="meno" maxlength="25"></td></tr>
<tr><th>E-mail: </th><td><input type="text" name="email" maxlength="25"> [nepovinné]</td></tr>
<tr><th>Správa: </th><td><textarea cols="50" rows="5" name="sprava"></textarea></td></tr>
<tr><th></th><td><input type="submit"
name="Submit" value="Odoslať komentár"></td></tr>
</table>
</form>