Hoi,
Ik had me nieuwssysteem beveiligd(dat het alleen toegankelijk is voor leden).
Nu krijg ik een witte pagina terwijl er Geencrewlid moet staan??.
www.jznwlnl.org/includes/nieuws/voegtoe.php
<?php
session_start();
if ($_SESSION['login'] == 'Inloggen') {
//config includen
include("config.php");
error_reporting(E_ALL);
// het script
if( isset($_POST['submit']))
{
$query = mysql_query("INSERT INTO site_nieuws (naam, titel, bericht, soort, datum)
VALUES('".$_POST['who']."','".$_POST['title']."','".$_POST['message']."','".$_POST['what']."',NOW())") or die(mysql_error());
if( $query )
{
echo "Nieuwsbericht is geplaatst";
} else {
echo "Er is wat foutgegaan";
}
} else {
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Bericht posten</title>
</head>
<body>
<form action="voegtoe.php" method="post">
<table width="268">
<tr>
<td width="46">Door:</td>
<td width="1225"><Input type="text" name="who"></td>
</tr>
<tr>
<td>Soort:</td>
<td><input type="text" name="what"></td>
</tr>
<tr>
<td>Titel:</td>
<td><input type="text" name="title"></td>
</tr>
<tr>
<td>Bericht:</td>
<td><textarea rows="10" cols="30" name="message"></textarea></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Toevoegen"></td>
</tr>
</table>
</form>
</body>
</html>
<?php
}
}
else
{
echo "Geen Crewlid":
}
?>
865 views