Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nieuwe pagina 1</title>
</head>
<body>
<?php
// variabelen definiëren
$datum = date("d.m.y H:i");
$bericht = htmlentities($bericht);
$bericht = nl2br($bericht);
$bericht = stripslashes($bericht);
$bericht = wordwrap($bericht,180);
$naam = $_POST['naam'];
$bericht = $_POST['bericht'];
$email = $_POST['email'];
$woonplaats = $_POST['woonplaats'];
$homepage = $_POST['homepage'];
$file = "gastenboek.php";
$fopenr = fopen ($file, "r");
$inhoud = fread ($fopenr, filesize($file));
$fopenw = fopen($file, "w+");
// Bericht op scherm schrijven
fwrite($fopenw, "\n \n <!-- Bericht --> \n
<table class='forumline' width='100%' cellspacing='1' cellpadding='3' border='0'>
<tr bgcolor='#6277A3'>
<th class='thLeft' width='150' height='26' nowrap='nowrap'>Auteur</th>
<th class='thRight' nowrap='nowrap'>Bericht</th>
</tr>
<tr>
<td width='150' align='left' valign='top' class='row1'><span class='name'><a name='5'></a><b>$naam</b></span><br>
<span class='postdetails'>$woonplaats<br><br><br><a href='$homepage'>Homepage van $naam</a><br></span><br></td>
<td class='row1' width='100%' height='28' valign='top'><table width='100%' border='0' cellspacing='0' cellpadding='0'></td>
<td width='100%'><a href='/index.php'><img src='/images/icon/icon_minipost.gif' width='12' height='9' alt='Bericht' title='Bericht' border='0' /></a><span class='postdetails'>Geplaatst: $datum</td>
<td valign='top' nowrap='nowrap'></td>
</tr>
<tr>
<td colspan='2'><hr /></td>
</tr>
<tr>
<td colspan='2'><span>$bericht</span><span class='gensmall'></span></td>
</tr>
</table>
</tr>
<tr bgcolor='#EFEFEF'>
<td class='row1' width='150' align='left' valign='middle'><span class='nav'><a href='#top' class='nav'>Terug naar boven</a></span></td>
<td valign='middle' nowrap='nowrap'><a href='mailto: $email'><IMG src='/images/icon/icon_email.gif' alt='E-mail versturen' title='E-mail versturen' border='0' /></a></td>
</tr>
</table>
</tr>
<tr bgcolor='#E5E5E5'>
<td colspan='0' height='0' ><img src='' alt='' width='0' height='0' /></td>
</tr>
</td>
</tr>
</table>
</td>
</tr>
</table><p>
$inhoud\n ");
fclose($fopenw);
echo "<SCRIPT LANGUAGE=\"javascript\" TYPE=\"text/javascript\">window.location='index.php'</SCRIPT>\n";
mail ("jouemail@chell.be", "Nieuw bericht in gastenboek", "
Hallo,\n\n
Er is zojuist een bericht achter gelaten door $naam ($email).\n\n
Dit was een automatisch bericht.
", "From: $naam <$email>");
?>
</body>
</html>
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.