?>
<form id='myform' action="<?php echo $_SERVER['PHP_SELF']; ?>" method = 'POST'>
<?php
echo"<center>";
?>
<br>
<textarea id="mytextarea" style="font-size: 12pt" name="post" rows="5" cols="25">
</textarea>
<br>
<?php
echo'<input type="hidden" id="custId" name="number" value='.$topic_number.'>';
?>
<input type="submit" name='action_send' value="Submit" style=" font-size:20px; height:90px; width:150px">
</form>
<?php
echo"</center>";
if( isset ($_POST['action_send'] ) )
{ // add one post
echo"<center>";
$topic_number=test_input($_POST["number"]);
$post=test_input($_POST["post"]);
mysqli_set_charset($ccoonn, "utf8");
$sql = "INSERT INTO `posts` (`post`,`topic`) VALUES ( '$post','$topic_number')";
$result = mysqli_query($ccoonn ,$sql);
echo"<a href='http://saalek110.is-great.net/forum/topic.php?number=$topic_number'>"."return to topic"."</a>";
echo"</center>";
} // end of action_send