eisdatop
Gebruiker
- Lid geworden
- 14 jul 2004
- Berichten
- 434
Hallo allemaal!
Ben bezig mijn site helemaal overhoop te halen, alleen heb ik bij 1 pagina een probleem met de header, als er een reactie wordt geplaatst! Deze stuurt hem niet door naar de pagina die ik opgegeven heb
Dit is de pagina, wat kan het probleem zijn?
Ben bezig mijn site helemaal overhoop te halen, alleen heb ik bij 1 pagina een probleem met de header, als er een reactie wordt geplaatst! Deze stuurt hem niet door naar de pagina die ik opgegeven heb

PHP:
<?php
include("config.php");
$datum = date("Y-m-d");
$ganaar = $_GET['nid'];
if($_POST['plaatsreactie']){
mysql_query("INSERT INTO reacties (Naam, Mail, Datum, Reactie, nieuwsid) Values
('".$_POST['naam']."',
'".$_POST['email']."',
'".$datum."',
'".$_POST['nieuwsreactie']."',
'".$_GET['nid']."')")
or die(mysql_error());
header("Location: index.php?pagina=nieuws/artikel&id=$ganaar");
exit;
}
$select = "SELECT * FROM nieuws WHERE id='".$_GET['nid']."'";
$query = mysql_query($select);
while ($list = mysql_fetch_object($query))
if ($list->status == "gesloten")
{
echo("Dit nieuwsbericht is gesloten. Reageren is niet meer mogelijk");
}
else
{
echo("<form method=POST name=reactie action=>
<table border=0 cellpadding=0 cellspacing=0 style=border-collapse:
collapse bordercolor=#111111 width=39% height=16>
<tr>
<td width=52% height=1>Reageren</td>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 style=border-collapse:
collapse bordercolor=#111111 width=39%>
<tr>
<td width=100%> </td>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 style=border-collapse:
collapse bordercolor=#111111 width=39% height=16>
<tr>
<td width=15% height=1>Naam:</td>
<td width=37% height=1><input type=text name=naam size=20></td>
</tr>
<tr>
<td width=15% height=1>E-mail:</td>
<td width=37% height=1><input type=text name=email size=20></td>
</tr>
<table border=0 cellpadding=0 cellspacing=0 style=border-collapse:
collapse bordercolor=#111111 width=39%>
<tr>
<td width=100% colspan=2> </td>
</tr>
<tr>
<td width=29%> </td>
<td width=71%>
blaat
</td>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 style=border-collapse:
collapse bordercolor=#111111 width=39% height=16>
<tr>
<td width=15% height=1>Bericht:</td>
<td width=37% height=1>
<textarea rows=10 name=nieuwsreactie cols=28></textarea></td>
</tr>
<table border=0 cellpadding=0 cellspacing=0 style=border-collapse:
collapse bordercolor=#111111 width=39%>
<tr>
<td width=29%> </td>
<td width=71%>blaat</td>
</tr>
<tr>
<td width=29%> </td>
<td width=71%>
<input type=submit value=plaatsreactie plaatsen name=plaatsreactie></td>
</tr>
</table></form>");
}
?>
Dit is de pagina, wat kan het probleem zijn?