simpele-berichtenbalk-zonder-mysql
Gesponsorde koppelingen
PHP script bestanden
-- index.php --
Code (php)
1
2
3
2
3
<body bgcolor=green><table width=100% height=15 bordercolor=000066 border=1><tr><td width=160 bgcolor=0099FF><center><a href="./schrijf.php" onclick="window.open('./schrijf.php','schrijf',
'width=230,height=140,scrollbars=no,toolbar=no,location=no'); return false"><font face=verdana size=2 color=white>SCHRIJF BERICHT</a></td><td bgcolor=000000><marquee>
<font face=verdana size=2 color=blue><b>Systeem</b>: Berichtenbalk online!</font>
'width=230,height=140,scrollbars=no,toolbar=no,location=no'); return false"><font face=verdana size=2 color=white>SCHRIJF BERICHT</a></td><td bgcolor=000000><marquee>
<font face=verdana size=2 color=blue><b>Systeem</b>: Berichtenbalk online!</font>
-- schrijf.php --
Code (php)
1
2
2
<form action="verwerk.php" method="post"><body bgcolor=green><table width=230 height=80 border=1 bordercolor=000066><tr><td bgcolor=0099ff><center><a href="javascript:window.close();"><font face=verdana size=2 color=white>TERUG</a></td></tr><tr><td><font face=verdana size=2 color=black>Naam: </font><input type="text" name="naam" maxlength="10" value="naam"></td></tr><tr><td><font face=verdana size=2 color=black>Bericht: </font><input type="text" name="bericht" maxlength="150" value="bericht"></td></tr><tr><td><center><input type="submit" name="submit" value="schrijf">
</form></td></tr></table>
</form></td></tr></table>
-- verwerk.php --
Code (php)
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
<?php
$fp=fopen("index.php", "a");
fwrite($fp,"<font face=verdana size=2 color=white> - <b>".htmlspecialchars($_POST['naam'])."</b>: ".htmlspecialchars($_POST['bericht'])."</font>");
fclose($fp);
echo "
<body bgcolor=green><table width=230 height=80 border=1 bordercolor=000066><tr><td bgcolor=0099ff><center><a href='javascript:window.close();'><font face=verdana size=2 color=white>TERUG</a></td></tr><tr><td><center><font face=verdana size=2 color=000066>Bericht geplaatst!</font></td></tr></table>";
?>
$fp=fopen("index.php", "a");
fwrite($fp,"<font face=verdana size=2 color=white> - <b>".htmlspecialchars($_POST['naam'])."</b>: ".htmlspecialchars($_POST['bericht'])."</font>");
fclose($fp);
echo "
<body bgcolor=green><table width=230 height=80 border=1 bordercolor=000066><tr><td bgcolor=0099ff><center><a href='javascript:window.close();'><font face=verdana size=2 color=white>TERUG</a></td></tr><tr><td><center><font face=verdana size=2 color=000066>Bericht geplaatst!</font></td></tr></table>";
?>