Nieuw lid |
|
Ik heb dus een nieuwscript.
Als je form.php invult dan kan je nieuws toevoegen wanneer je op submit duwt. Als je op submit duwt krijg je de tekst: Bericht succesvol toegevoegd.
Werkt goed enzo.
Het lastige was dat ik telkens naar een pagina moest verwijzen BUITEN mijn website (TS/nieuwssysteem/admin/form.php)...
Ik wilde dus het zootje integreren in mijn website, ik zette er mijn layout in en deed
case "addnews": $page="nieuwssysteem/admin/form.php";break;
case "addnews": $page="nieuwssysteem/admin/form.php";break;
Dit deed ik al bij vele pagina's en dat gaf nooit problemen dus ik deed het hier ook.
Ik test het en duw op Submit, en wat krijg ik plotseling, in plaats van het zinnetje "succesvol toegevoegd"?
Deze mooie error:
Not Found
The requested URL /ts/form.php was not found on this server.
Ik weet in de eerste plaats al niet waarom hij plotseling gaat naar /ts/form.php ?
Dit is het werkende form:
<?PHP
session_start();
include("../includes/config.inc.php");
?>
<script language="JavaScript">
function smile (code){
document.form.bericht.value = document.form.bericht.value + code;
document.form.bericht.focus();
}
</script>
<?PHP
if(!IsSet($_POST['submit']))
{
echo "<Form Method='POST' Action='form.php' name='form'>";
echo "Door: ";
echo "<Input Type='TEXT' Name='door' style='width: 350px; margin-left: 25px;'margin-right: 25px;'>";
echo "Titel: ";
echo "<Input Type='TEXT' Name='titel' style='width: 350px; margin-left: 25px;'margin-right: 25px;'>";
echo "<Center>";
echo "<Input Type='BUTTON' Name='[b][/b]' Value='[b][/b]' style='width: 99px;' onClick='javascript: smile(\"[b][/b]\");'>";
echo "<Input Type='BUTTON' Name='[u][/u]' Value='[u][/u]' style='width: 99px;' onClick='javascript: smile(\"[u][/u]\");'>";
echo "<Input Type='BUTTON' Name='[i][/i]' Value='[i][/i]' style='width: 99px;' onClick='javascript: smile(\"[i][/i]\");'>";
echo "<Input Type='BUTTON' Name='[email][/email]' Value='[email][/email]' style='width: 99px;' onClick='javascript: smile(\"[email][/email]\");'>";
echo "<Input Type='BUTTON' Name='[url][/url]' Value='[url][/url]' style='width: 99px;' onClick='javascript: smile(\"[url][/url]\");'>";
echo "</Center>";
echo "<Center>";
echo "<IMG Src='".$img['smiles']."/icon_arrow.gif' onClick='javascript: smile(\":arrow:\")'>";
echo "<IMG Src='".$img['smiles']."/icon_biggrin.gif' onClick='javascript: smile(\":D\");'>";
echo "<IMG Src='".$img['smiles']."/icon_confused.gif' onClick='javascript: smile(\":S\");'>";
echo "<IMG Src='".$img['smiles']."/icon_cool.gif' onClick='javascript: smile(\"8)\");'>";
echo "<IMG Src='".$img['smiles']."/icon_cry.gif' onClick='javascript: smile(\":*(\");'>";
echo "<IMG Src='".$img['smiles']."/icon_eek.gif' onClick='javascript: smile(\":shock:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_evil.gif' onClick='javascript: smile(\":evil:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_exclaim.gif' onClick='javascript: smile(\":!:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_frown.gif' onClick='javascript: smile(\"^:(\");'>";
echo "<IMG Src='".$img['smiles']."/icon_idea.gif' onClick='javascript: smile(\":idea:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_lol.gif' onClick='javascript: smile(\":lol:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_mad.gif' onClick='javascript: smile(\":x\");'>";
echo "<IMG Src='".$img['smiles']."/icon_mrgreen.gif' onClick='javascript: smile(\":mrgreen:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_neutral.gif' onClick='javascript: smile(\":|\");'>";
echo "<IMG Src='".$img['smiles']."/icon_question.gif' onClick='javascript: smile(\":?:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_razz.gif' onClick='javascript: smile(\":P\");'>";
echo "<IMG Src='".$img['smiles']."/icon_redface.gif' onClick='javascript: smile(\":oops:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_rolleyes.gif' onClick='javascript: smile(\":roll:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_sad.gif' onClick='javascript: smile(\":(\");'>";
echo "<IMG Src='".$img['smiles']."/icon_smile.gif' onClick='javascript: smile(\":)\");'>";
echo "<IMG Src='".$img['smiles']."/icon_surprised.gif' onClick='javascript: smile(\":o\");'>";
echo "<IMG Src='".$img['smiles']."/icon_twisted.gif' onClick='javascript: smile(\":twisted:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_wink.gif' onClick='javascript: smile(\":wink:\");'>";
echo "</Center>";
echo "Bericht: ";
echo "<Textarea Name='bericht' style='width: 350px; height: 150px; margin-left: 25px;'margin-right: 25px;'>";
echo "</Textarea>";
echo "<Input Type='SUBMIT' Name='submit' Value='Submit!' style='width: 100px; margin-left: 25px;'margin-right: 25px;'>";
} else
{
if(!IsSet($_POST['door']) || empty($_POST['door']))
{
echo "Error!- Geen naam ingevuld!";
echo "<BR>";
echo "<A HREF='javascript:history.go(-1);'>Keer terug!</A>";
} else if(!IsSet($_POST['titel']) || empty($_POST['titel']))
{
echo "Error!- Geen titel ingevuld!";
echo "<BR>";
echo "<A HREF='javascript:history.go(-1);'>Keer terug!</A>";
} else if(!IsSet($_POST['bericht']) || empty($_POST['bericht']))
{
echo "Error!- Geen bericht ingevuld!";
echo "<BR>";
echo "<A HREF='javascript:history.go(-1);'>Keer terug!</A>";
} else
{
$sQuery = "INSERT INTO nieuws (id, titel, door, text, datum, tijd) VALUES ('', '".$_POST['titel']."', '".$_POST['door']."', '".$_POST['bericht']."', '".date("d-m-Y")."', '".date("H:i")."')";
$sResult = MySQL_Query($sQuery) or report_mysql("Nieuws invoegen", __FILE__, __LINE__, $sQuery);
echo "Het nieuwsbericht is succesvol toegevoegd.";
echo "<BR>";
echo "Klik <A HREF='index.php'>hier</A> om terug te keren naar de beginpagina.";
echo "<BR>";
echo "Klik <A HREF='logout.php'>hier</A> om uit te loggen.";
}
}
?>
<?PHP include("../includes/config.inc.php"); ?> <script language="JavaScript"> function smile (code){ document.form.bericht.value = document.form.bericht.value + code; document.form.bericht.focus(); } </script> <?PHP if(!IsSet($_POST['submit'])) { echo "<Form Method='POST' Action='form.php' name='form'>"; echo "<Input Type='TEXT' Name='door' style='width: 350px; margin-left: 25px;'margin-right: 25px;'>"; echo "<Input Type='TEXT' Name='titel' style='width: 350px; margin-left: 25px;'margin-right: 25px;'>"; echo "<Input Type='BUTTON' Name='[b][/b]' Value='[b][/b]' style='width: 99px;' onClick='javascript: smile(\"[b][/b]\");'>"; echo "<Input Type='BUTTON' Name='[u][/u]' Value='[u][/u]' style='width: 99px;' onClick='javascript: smile(\"[u][/u]\");'>"; echo "<Input Type='BUTTON' Name='[i][/i]' Value='[i][/i]' style='width: 99px;' onClick='javascript: smile(\"[i][/i]\");'>"; echo "<Input Type='BUTTON' Name='[email][/email]' Value='[email][/email]' style='width: 99px;' onClick='javascript: smile(\"[email][/email]\");'>"; echo "<Input Type='BUTTON' Name='[url][/url]' Value='[url][/url]' style='width: 99px;' onClick='javascript: smile(\"[url][/url]\");'>"; echo "<IMG Src='".$img['smiles']."/icon_arrow.gif' onClick='javascript: smile(\":arrow:\")'>"; echo "<IMG Src='".$img['smiles']."/icon_biggrin.gif' onClick='javascript: smile(\":D\");'>"; echo "<IMG Src='".$img['smiles']."/icon_confused.gif' onClick='javascript: smile(\":S\");'>"; echo "<IMG Src='".$img['smiles']."/icon_cool.gif' onClick='javascript: smile(\"8)\");'>"; echo "<IMG Src='".$img['smiles']."/icon_cry.gif' onClick='javascript: smile(\":*(\");'>"; echo "<IMG Src='".$img['smiles']."/icon_eek.gif' onClick='javascript: smile(\":shock:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_evil.gif' onClick='javascript: smile(\":evil:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_exclaim.gif' onClick='javascript: smile(\":!:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_frown.gif' onClick='javascript: smile(\"^:(\");'>"; echo "<IMG Src='".$img['smiles']."/icon_idea.gif' onClick='javascript: smile(\":idea:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_lol.gif' onClick='javascript: smile(\":lol:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_mad.gif' onClick='javascript: smile(\":x\");'>"; echo "<IMG Src='".$img['smiles']."/icon_mrgreen.gif' onClick='javascript: smile(\":mrgreen:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_neutral.gif' onClick='javascript: smile(\":|\");'>"; echo "<IMG Src='".$img['smiles']."/icon_question.gif' onClick='javascript: smile(\":?:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_razz.gif' onClick='javascript: smile(\":P\");'>"; echo "<IMG Src='".$img['smiles']."/icon_redface.gif' onClick='javascript: smile(\":oops:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_rolleyes.gif' onClick='javascript: smile(\":roll:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_sad.gif' onClick='javascript: smile(\":(\");'>"; echo "<IMG Src='".$img['smiles']."/icon_smile.gif' onClick='javascript: smile(\":)\");'>"; echo "<IMG Src='".$img['smiles']."/icon_surprised.gif' onClick='javascript: smile(\":o\");'>"; echo "<IMG Src='".$img['smiles']."/icon_twisted.gif' onClick='javascript: smile(\":twisted:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_wink.gif' onClick='javascript: smile(\":wink:\");'>"; echo "<Textarea Name='bericht' style='width: 350px; height: 150px; margin-left: 25px;'margin-right: 25px;'>"; echo "<Input Type='SUBMIT' Name='submit' Value='Submit!' style='width: 100px; margin-left: 25px;'margin-right: 25px;'>"; } else { if(!IsSet($_POST['door']) || empty($_POST['door'])) { echo "Error!- Geen naam ingevuld!"; echo "<A HREF='javascript:history.go(-1);'>Keer terug!</A>"; } else if(!IsSet($_POST['titel']) || empty($_POST['titel'])) { echo "Error!- Geen titel ingevuld!"; echo "<A HREF='javascript:history.go(-1);'>Keer terug!</A>"; } else if(!IsSet($_POST['bericht']) || empty($_POST['bericht'])) { echo "Error!- Geen bericht ingevuld!"; echo "<A HREF='javascript:history.go(-1);'>Keer terug!</A>"; } else { $sQuery = "INSERT INTO nieuws (id, titel, door, text, datum, tijd) VALUES ('', '".$_POST['titel']."', '".$_POST['door']."', '".$_POST['bericht']."', '".date("d-m-Y")."', '".date("H:i")."')"; $sResult = MySQL_Query($sQuery) or report_mysql ("Nieuws invoegen", __FILE__, __LINE__, $sQuery); echo "Het nieuwsbericht is succesvol toegevoegd."; echo "Klik <A HREF='index.php'>hier</A> om terug te keren naar de beginpagina."; echo "Klik <A HREF='logout.php'>hier</A> om uit te loggen."; } } ?>
En dit het niet werkende
<table border=0 cellpadding=0 cellspacing=0 width=377 class="body">
<tr><td background="images/contentboxTop.gif" WIDTH=377 HEIGHT=33 ALT=""><table height=100%><tr><td width=10></td><td class="body"><b>Nieuwspost toevoegen</b></td></tr></table></td></tr>
<tr><td background="images/contentboxBack.gif" WIDTH=377 HEIGHT=126 ALT="" align="center">
<br>
<?PHP
session_start();
include("../includes/config.inc.php");
?>
<script language="JavaScript">
function smile (code){
document.form.bericht.value = document.form.bericht.value + code;
document.form.bericht.focus();
}
</script>
<?PHP
if(!IsSet($_POST['submit']))
{
echo "<Form Method='POST' Action='form.php' name='form'>";
echo "Door: ";
echo "<Input Type='TEXT' Name='door' style='width: 350px; margin-left: 25px;'margin-right: 25px;'>";
echo "Titel: ";
echo "<Input Type='TEXT' Name='titel' style='width: 350px; margin-left: 25px;'margin-right: 25px;'>";
echo "<Center>";
echo "<Input Type='BUTTON' Name='[b][/b]' Value='[b][/b]' style='width: 99px;' onClick='javascript: smile(\"[b][/b]\");'>";
echo "<Input Type='BUTTON' Name='[u][/u]' Value='[u][/u]' style='width: 99px;' onClick='javascript: smile(\"[u][/u]\");'>";
echo "<Input Type='BUTTON' Name='[i][/i]' Value='[i][/i]' style='width: 99px;' onClick='javascript: smile(\"[i][/i]\");'>";
echo "<Input Type='BUTTON' Name='[email][/email]' Value='[email][/email]' style='width: 99px;' onClick='javascript: smile(\"[email][/email]\");'>";
echo "<Input Type='BUTTON' Name='[url][/url]' Value='[url][/url]' style='width: 99px;' onClick='javascript: smile(\"[url][/url]\");'>";
echo "</Center>";
echo "<Center>";
echo "<IMG Src='".$img['smiles']."/icon_arrow.gif' onClick='javascript: smile(\":arrow:\")'>";
echo "<IMG Src='".$img['smiles']."/icon_biggrin.gif' onClick='javascript: smile(\":D\");'>";
echo "<IMG Src='".$img['smiles']."/icon_confused.gif' onClick='javascript: smile(\":S\");'>";
echo "<IMG Src='".$img['smiles']."/icon_cool.gif' onClick='javascript: smile(\"8)\");'>";
echo "<IMG Src='".$img['smiles']."/icon_cry.gif' onClick='javascript: smile(\":*(\");'>";
echo "<IMG Src='".$img['smiles']."/icon_eek.gif' onClick='javascript: smile(\":shock:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_evil.gif' onClick='javascript: smile(\":evil:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_exclaim.gif' onClick='javascript: smile(\":!:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_frown.gif' onClick='javascript: smile(\"^:(\");'>";
echo "<IMG Src='".$img['smiles']."/icon_idea.gif' onClick='javascript: smile(\":idea:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_lol.gif' onClick='javascript: smile(\":lol:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_mad.gif' onClick='javascript: smile(\":x\");'>";
echo "<IMG Src='".$img['smiles']."/icon_mrgreen.gif' onClick='javascript: smile(\":mrgreen:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_neutral.gif' onClick='javascript: smile(\":|\");'>";
echo "<IMG Src='".$img['smiles']."/icon_question.gif' onClick='javascript: smile(\":?:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_razz.gif' onClick='javascript: smile(\":P\");'>";
echo "<IMG Src='".$img['smiles']."/icon_redface.gif' onClick='javascript: smile(\":oops:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_rolleyes.gif' onClick='javascript: smile(\":roll:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_sad.gif' onClick='javascript: smile(\":(\");'>";
echo "<IMG Src='".$img['smiles']."/icon_smile.gif' onClick='javascript: smile(\":)\");'>";
echo "<IMG Src='".$img['smiles']."/icon_surprised.gif' onClick='javascript: smile(\":o\");'>";
echo "<IMG Src='".$img['smiles']."/icon_twisted.gif' onClick='javascript: smile(\":twisted:\");'>";
echo "<IMG Src='".$img['smiles']."/icon_wink.gif' onClick='javascript: smile(\":wink:\");'>";
echo "</Center>";
echo "Bericht: ";
echo "<Textarea Name='bericht' style='width: 350px; height: 150px; margin-left: 25px;'margin-right: 25px;'>";
echo "</Textarea>";
echo "<Input Type='SUBMIT' Name='submit' Value='Submit!' style='width: 100px; margin-left: 25px;'margin-right: 25px;'>";
} else
{
if(!IsSet($_POST['door']) || empty($_POST['door']))
{
echo "Error!- Geen naam ingevuld!";
echo "<BR>";
echo "<A HREF='javascript:history.go(-1);'>Keer terug!</A>";
} else if(!IsSet($_POST['titel']) || empty($_POST['titel']))
{
echo "Error!- Geen titel ingevuld!";
echo "<BR>";
echo "<A HREF='javascript:history.go(-1);'>Keer terug!</A>";
} else if(!IsSet($_POST['bericht']) || empty($_POST['bericht']))
{
echo "Error!- Geen bericht ingevuld!";
echo "<BR>";
echo "<A HREF='javascript:history.go(-1);'>Keer terug!</A>";
} else
{
$sQuery = "INSERT INTO nieuws (id, titel, door, text, datum, tijd) VALUES ('', '".$_POST['titel']."', '".$_POST['door']."', '".$_POST['bericht']."', '".date("d-m-Y")."', '".date("H:i")."')";
$sResult = MySQL_Query($sQuery) or report_mysql("Nieuws invoegen", __FILE__, __LINE__, $sQuery);
echo "Het nieuwsbericht is succesvol toegevoegd.";
echo "<BR>";
echo "Klik <A HREF='index.php'>hier</A> om terug te keren naar de beginpagina.";
echo "<BR>";
echo "Klik <A HREF='logout.php'>hier</A> om uit te loggen.";
}
}
?>
<tr><td background="images/contentboxBottom.gif" height=2>
</td></tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 width=377 class="body"> <tr><td background="images/contentboxTop.gif" WIDTH=377 HEIGHT=33 ALT=""><table height=100%><tr><td width=10></td><td class="body"><b>Nieuwspost toevoegen</b></td></tr></table></td></tr> <tr><td background="images/contentboxBack.gif" WIDTH=377 HEIGHT=126 ALT="" align="center"> <br> <?PHP include("../includes/config.inc.php"); ?> <script language="JavaScript"> function smile (code){ document.form.bericht.value = document.form.bericht.value + code; document.form.bericht.focus(); } </script> <?PHP if(!IsSet($_POST['submit'])) { echo "<Form Method='POST' Action='form.php' name='form'>"; echo "<Input Type='TEXT' Name='door' style='width: 350px; margin-left: 25px;'margin-right: 25px;'>"; echo "<Input Type='TEXT' Name='titel' style='width: 350px; margin-left: 25px;'margin-right: 25px;'>"; echo "<Input Type='BUTTON' Name='[b][/b]' Value='[b][/b]' style='width: 99px;' onClick='javascript: smile(\"[b][/b]\");'>"; echo "<Input Type='BUTTON' Name='[u][/u]' Value='[u][/u]' style='width: 99px;' onClick='javascript: smile(\"[u][/u]\");'>"; echo "<Input Type='BUTTON' Name='[i][/i]' Value='[i][/i]' style='width: 99px;' onClick='javascript: smile(\"[i][/i]\");'>"; echo "<Input Type='BUTTON' Name='[email][/email]' Value='[email][/email]' style='width: 99px;' onClick='javascript: smile(\"[email][/email]\");'>"; echo "<Input Type='BUTTON' Name='[url][/url]' Value='[url][/url]' style='width: 99px;' onClick='javascript: smile(\"[url][/url]\");'>"; echo "<IMG Src='".$img['smiles']."/icon_arrow.gif' onClick='javascript: smile(\":arrow:\")'>"; echo "<IMG Src='".$img['smiles']."/icon_biggrin.gif' onClick='javascript: smile(\":D\");'>"; echo "<IMG Src='".$img['smiles']."/icon_confused.gif' onClick='javascript: smile(\":S\");'>"; echo "<IMG Src='".$img['smiles']."/icon_cool.gif' onClick='javascript: smile(\"8)\");'>"; echo "<IMG Src='".$img['smiles']."/icon_cry.gif' onClick='javascript: smile(\":*(\");'>"; echo "<IMG Src='".$img['smiles']."/icon_eek.gif' onClick='javascript: smile(\":shock:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_evil.gif' onClick='javascript: smile(\":evil:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_exclaim.gif' onClick='javascript: smile(\":!:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_frown.gif' onClick='javascript: smile(\"^:(\");'>"; echo "<IMG Src='".$img['smiles']."/icon_idea.gif' onClick='javascript: smile(\":idea:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_lol.gif' onClick='javascript: smile(\":lol:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_mad.gif' onClick='javascript: smile(\":x\");'>"; echo "<IMG Src='".$img['smiles']."/icon_mrgreen.gif' onClick='javascript: smile(\":mrgreen:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_neutral.gif' onClick='javascript: smile(\":|\");'>"; echo "<IMG Src='".$img['smiles']."/icon_question.gif' onClick='javascript: smile(\":?:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_razz.gif' onClick='javascript: smile(\":P\");'>"; echo "<IMG Src='".$img['smiles']."/icon_redface.gif' onClick='javascript: smile(\":oops:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_rolleyes.gif' onClick='javascript: smile(\":roll:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_sad.gif' onClick='javascript: smile(\":(\");'>"; echo "<IMG Src='".$img['smiles']."/icon_smile.gif' onClick='javascript: smile(\":)\");'>"; echo "<IMG Src='".$img['smiles']."/icon_surprised.gif' onClick='javascript: smile(\":o\");'>"; echo "<IMG Src='".$img['smiles']."/icon_twisted.gif' onClick='javascript: smile(\":twisted:\");'>"; echo "<IMG Src='".$img['smiles']."/icon_wink.gif' onClick='javascript: smile(\":wink:\");'>"; echo "<Textarea Name='bericht' style='width: 350px; height: 150px; margin-left: 25px;'margin-right: 25px;'>"; echo "<Input Type='SUBMIT' Name='submit' Value='Submit!' style='width: 100px; margin-left: 25px;'margin-right: 25px;'>"; } else { if(!IsSet($_POST['door']) || empty($_POST['door'])) { echo "Error!- Geen naam ingevuld!"; echo "<A HREF='javascript:history.go(-1);'>Keer terug!</A>"; } else if(!IsSet($_POST['titel']) || empty($_POST['titel'])) { echo "Error!- Geen titel ingevuld!"; echo "<A HREF='javascript:history.go(-1);'>Keer terug!</A>"; } else if(!IsSet($_POST['bericht']) || empty($_POST['bericht'])) { echo "Error!- Geen bericht ingevuld!"; echo "<A HREF='javascript:history.go(-1);'>Keer terug!</A>"; } else { $sQuery = "INSERT INTO nieuws (id, titel, door, text, datum, tijd) VALUES ('', '".$_POST['titel']."', '".$_POST['door']."', '".$_POST['bericht']."', '".date("d-m-Y")."', '".date("H:i")."')"; $sResult = MySQL_Query($sQuery) or report_mysql ("Nieuws invoegen", __FILE__, __LINE__, $sQuery); echo "Het nieuwsbericht is succesvol toegevoegd."; echo "Klik <A HREF='index.php'>hier</A> om terug te keren naar de beginpagina."; echo "Klik <A HREF='logout.php'>hier</A> om uit te loggen."; } } ?> <tr><td background="images/contentboxBottom.gif" height=2> </td></tr> </table>
Ik hoop echt dat iemand mij kan helpen, want ik zit er al 2 dagen aan te fucken, en ik dacht EINDELIJK is het af, maar dan werkt het niet meer
|