Ik heb inmiddels een scriptje van iemand gekregen, maar ik ben bang dat ie
vol fouten zit.
Krijg parseerrors...
Het gaat dus om een nieuwsscriptje.
Lap tekst... Dat je kan veranderen.
Wie kan me even helpen dit te debuggen?
Alvast Hartelijk Dank!
----Pagina.php-----
<?php include ("ding.txt"); ?>
<a href="geefop.php">Klik hier om het nieuws te veranderen.</a>
----ding.txt------
(leeg) (chmod 664)
----geefop.php------
<?php
if (!empty($_POST)) {
$bericht = nl2br($bericht);
$bestand = "ding.txt";
$inhoud_bestand = file($bestand);
$schrijf_bestand = fopen($bestand,"w");
fwrite ($schrijf_bestand, "_POST['bericht']"
fwrite ($schrijf_bestand, join('', $inhoud_bestand));
fclose ($schrijf_bestand);
echo "<script language=\"javascript\">setTimeout(\"window.locati on.href =
'Index.php'\", 1000);</script>";
}
else {
?>
<form action="<?php echo ($_SERVER['PHP_SELF']) ?>" method="post">
<textarea name="iets" value="hier je ding" onClick="if (this.value=='')
this.value=''" name="bericht">
</textarea>
<input type="submit">
<?php
}
?>
--
Greetz,
Bertez[z]
-
Mail:
Bertweb @ Home . NederLand

Likes:

Quote