<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link href="arkusz.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="kom.css" type="text/css" />
<div class="center">
<div id="panel">
<?php
$nazwa = 'komen.txt';//CHMODY 0777
if($_POST['autor'] & $_POST['email'] & $_POST['tresc']
)
{
fwrite($fp,'<p class="author">'.$autor. '</p> <p class="daty">'.$date.'</p> <p class="mail">'. strip_tags(strtr($email ,' \n',' ')).'</p> <p class="koment">'.$tresc.'</p><br> <HR> \n'); }
// jezeli juz istnieja jakies komentarze
{
for($i=0; $i<$ilosc; $i++)
{
$komentarz = explode('||',$linia[$i]); echo '<br /><b>'.$komentarz[0].'</b><br />'.$komentarz[1].'<br /><i>'.$komentarz[2].'</i><br />'; }
}
else{
echo '<k>Jeszcze nie ma żadnych komentarzy. Bądz pierwszy i skomentuj!</k><br /><br />'; }
?>
<form action="" method="POST">
<form>
<label for="username">Nick:</label>
<input type="text" id="username" name="autor" required="required"placeholder="nick">
<label for="username">E-mail:</label>
<input type="text" id="password" name="email" required="required"placeholder="email">
<label for="username">treść:</label>
<textarea cols="40" id="textarea" name="tresc" required="required"placeholder="treść"required="required"placeholder="treść"rows="7"></textarea>
<div id="lower">
<input type="submit" value="dodaj komentarz">
</div>
</form>
</div>
</div>
</body>
a to css
HR {
WIDTH: 400px;
HEIGHT: 2px;
margin-top: +10px;
background-color: red;
}
label {
color: black;
font-size: 17px;
font-weight: bold;
width: 75px;
margin-left: +10px; }
fieldset {
border: 1px solid yellowgreen;background-color: blanchedalmond;
margin-top: 0px;
margin-left: +10px;
padding: 7px;
width: 450px;
}
.author {
font-family: sylfen;
font-size:17px;
color: black;
margin-top: +5px;
margin-left: +1px;
}
font-family: sylfen;
font-size:15px;
color: green;
margin-top: -30px;
margin-left: +60px;
}
.daty {
font-family: sylfen;
font-size:14px;
color: red;
margin-top: -40px;
margin-left: +300px;
margin-right: -300px;
}
.koment {
font-family: sylfen;
font-size:17px;
color: brown;
margin-top: +10px;
margin-left: +1px;
}
k{
font-family: sylfen;
font-size:19px;
color:red;
}