me script
<?php
include('config.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Jznwlnl.org - Versie 2 beta</title>
<meta name="generator" content="MAX's HTML Beauty++ 2004" />
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div id="logo"><img src="<?php echo $logo; ?>" border="0" alt="Simpele Versie van het logo"></div>
<div id="container">
<?php include("lmenu.php"); ?>
<div id="content">
<div class="contentheading">Content</div>
<div class="contentcontent">
<p>
<?php
// include en error reporting
error_reporting(E_ALL);
// uitvoeren van het script
if($_SERVER['REQUEST_METHOD'] == "POST")
{
$id=$_GET['nieuws_id'];
$reag = mysql_query("INSERT INTO nieuws_reacties (id, nieuws_id, naam, bericht, datum) VALUES( '',
'".$id."','".$_POST['some']."','".$_POST['sage']."',NOW())") or die(mysql_error());
if(isset($reag) && $reag != FALSE)
{
echo "Je reactie is geplaats.";
}
else
{
echo "Je reactie is niet geplaats.";
}
} else {
?>
<form action="reageren_nieuws.php" method="post">
<tr>
<td><input type="hidden" name="nieuws_id" value="'".$id."'"></td>
</tr>
<tr>
<td>Naam:</td><br>
<td><input type="text" name="some"</td>
</tr><br>
<tr>
<td>Bericht:</td><br>
<td><textarea rows="6" cols="10" name="sage"></textarea></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Reageren"></td>
</tr>
</form>
<?php
}
?>
</p>
</div>
<div class="contentheading"> </div>
</div>
<?php include("rmenu.php"); ?>
<div id="copyright"><?php echo $footer; ?></div>
</div>
</body>
</html>