rendered paste body<?php
$errors = array();
if (!$_POST[ 'text_com' ])
$errors[] = $comment_error = "<div id='error'>Please do not resubmit.</div>";
else {
header('Location: ./article.php?id_art=<?php echo $row_blogArticles["id_art"]); ?>');
exit;
}
?>
....
<?php if (isset($text_com)) echo $comment_error; ?>
<label for = "text_com"><p class = "comments">your comments:</p></label>
<form action = "" method = "post" enctype = "multipart/form-data" id = "form" onkeyup="highlight(event)" onclick="highlight(event)" >
<textarea type = "text" name = "text_com" id = "" class = "" cols = "58" rows = "5" value = "<?php echo $text_com ?>" />
<?php echo $text_com ?>
</textarea>
<p /><p />
<input type = "submit" name = "Blog_insert" value = "submit post" />
<input type = "hidden" name = "idart_com" value = "<?php echo htmlentities($Record['idart_com'])?>" />
<input type = "hidden" name = "idusr_com" value = "<?php echo $_SESSION['id_blg']; ?>" />
<input type = "hidden" name = "date_com" value = "<?php echo htmlentities($Record['date_com'])?>" />
<input type = "hidden" name = "valid_com" value = "1" />
</form>
....