ongedefinieerde functie oke ik heb functions.php
waar dit in staat:
<?
function filter($tekst)
{
$woorden = array ("k*t", "l*l", "k*nker", "tr*t", "fl*kker");
?>
include("functions.php"); voor je de betreffende functie aanroept
heb ik geinclude Jacco.
<?
include("connect.php");
include("functions.php");
if ($_POST['submit'] && $_POST['na_am'] && $_POST['beri_cht'] && $_POST
['tit_el'])
{
// enz enz
?>
Doe je toch iets niet goed en ik denk dat je nu relevant ook weer een beetje over de top trekt
Jacco nu in NL a.u.b
<?
include("connect.php");
include("functions.php");
if ($_POST['submit'] && $_POST['na_am'] && $_POST['beri_cht'] && $_POST
['tit_el'])
{
$datum = date("d.m.Y");
$_POST['beri_cht'] = filter($_POST['beri_cht']);
$sql = "INSERT INTO topics SET id = '', titel = '" . $_POST['tit_el'] . "',
bericht = '" . $_POST['beri_cht'] . "', datum = '" . $datum . "', naam = '" .
$_POST['na_am'] . "'";
$res = mysql_query($sql);
if ($res)
{
echo "Topic toegevoegd! Ga naar het <a href=\"topics.php\">topic
overzicht</a>";
}
?>
<?
error_reporting(E_ALL);
include("connect.php");
include("functions.php");
if ($_POST['submit'] && $_POST['na_am'] && $_POST['beri_cht'] && $_POST
['tit_el'])
{
$datum = date("d.m.Y");
$_POST['beri_cht'] = filter($_POST['beri_cht']);
$sql = "INSERT INTO topics SET id = '', titel = '" . $_POST['tit_el'] . "',
bericht = '" . $_POST['beri_cht'] . "', datum = '" . $datum . "', naam = '" .
$_POST['na_am'] . "'";
$res = mysql_query($sql);
if ($res)
{
echo "Topic toegevoegd! Ga naar het <a href=\"topics.php\">topic
overzicht</a>";
}
?>