Hondavfr91
Nieuwe gebruiker
- Lid geworden
- 14 nov 2010
- Berichten
- 3
Hallo mensen, ik heb een vraagje,
wie kan mij helpen om spam tegen te gaan in mijn gastenboek, ik word er echt helemaal gek van.
Zelf heb ik niet zoveel verstand van php, meer van html, en heb er best een tijd over gedaan om deze gastenboek werkend tekrijgen,maar nu, die spam word moelijker.
Ik heb voor mijn gastenboek 3 scripts, View, verwerk en reactie.. welke moet ik nu aanpassen en wat moet ik aanpassen?
dit zijn de codes:
View:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<img alt="GASTEN (89K)" src="GASTEN.gif" height="150" width="1200" />
<head>
<style TYPE="text/css">
<!--
A:link {color:"#3366ff";}
A:visited {color:"3366ff";}
A:hover {text-decoration: underline; color:"ffffff";}
A{text-decoration:none}
-->
</style>
<title>GASTENBOEK</title>
</head>
<body background="GASTEN02.gif">
<td><i><a href="HOME.html"><small>HOME</small></a></i>
<br>
<i><b><font size="4" color="#000080"><b><p align="center"><b> Gastenboek Reacties: </b></p>
<hr>
<p align="center"><?php include("reacties.txt"); ?></p>
<hr>
<i><b><font size="3" color="#ff0000"><b><p align="center"><b> Plaats hier een reactie in het gastenboek:</p>
<form name="form1" method="post" action="verwerk.php">
<p align="center">
Naam: <input name="Naam" type="text" value""></p>
<p align="center">
E-mail: <input name="Email" type="text" value=""></p>
<p align="center">Bericht:</p>
<p align="center"><textarea name="bericht" rows="7" cols="45"></textarea></p>
<p align="center"><input type="submit" name="Submit" value="Verzenden">
</p>
</form>
</html>
Verwerk:
<?php
$Naam = $_POST[Naam];
$Email = $_POST;
$url = $_POST[url];
$Bericht = $_POST[bericht];
$data = "reacties.txt";
$file = fopen($data, "a");
$tijd = time();
$datum = strftime("%d-%m-%y %H:%M", $tijd);
fputs($file, "<br> <h5>Geschreven door: <a href=\"mailto:$Email\">$Naam</a> - Tijd: <i>$datum</i> <br> <hr>
<h5>Bericht:</h5> <i>$Bericht</i><br><br><hr>");
fclose($file);
?>
<?php include("view.php"); ?>
[/COLOR]
en reactie:
[COLOR="deepskyblue"]<i><font size="2" color="#ff0000">
<ol>
Geschreven door: ruud - Tijd: 11-07-10 12:17
<br>
Bericht:
<br>
Welkom in mijn gastenboek! Ik hoop dat je genoten hebt van mijn site dus laat vooral een leuk berichtje achter!! Gr Ruud
<br><i><font size="2" color="#000080"><ol>[/COLOR]
Alvast bedankt!!
Gr Ruud
wie kan mij helpen om spam tegen te gaan in mijn gastenboek, ik word er echt helemaal gek van.
Zelf heb ik niet zoveel verstand van php, meer van html, en heb er best een tijd over gedaan om deze gastenboek werkend tekrijgen,maar nu, die spam word moelijker.
Ik heb voor mijn gastenboek 3 scripts, View, verwerk en reactie.. welke moet ik nu aanpassen en wat moet ik aanpassen?
dit zijn de codes:
View:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<img alt="GASTEN (89K)" src="GASTEN.gif" height="150" width="1200" />
<head>
<style TYPE="text/css">
<!--
A:link {color:"#3366ff";}
A:visited {color:"3366ff";}
A:hover {text-decoration: underline; color:"ffffff";}
A{text-decoration:none}
-->
</style>
<title>GASTENBOEK</title>
</head>
<body background="GASTEN02.gif">
<td><i><a href="HOME.html"><small>HOME</small></a></i>
<br>
<i><b><font size="4" color="#000080"><b><p align="center"><b> Gastenboek Reacties: </b></p>
<hr>
<p align="center"><?php include("reacties.txt"); ?></p>
<hr>
<i><b><font size="3" color="#ff0000"><b><p align="center"><b> Plaats hier een reactie in het gastenboek:</p>
<form name="form1" method="post" action="verwerk.php">
<p align="center">
Naam: <input name="Naam" type="text" value""></p>
<p align="center">
E-mail: <input name="Email" type="text" value=""></p>
<p align="center">Bericht:</p>
<p align="center"><textarea name="bericht" rows="7" cols="45"></textarea></p>
<p align="center"><input type="submit" name="Submit" value="Verzenden">
</p>
</form>
</html>
Verwerk:
<?php
$Naam = $_POST[Naam];
$Email = $_POST;
$url = $_POST[url];
$Bericht = $_POST[bericht];
$data = "reacties.txt";
$file = fopen($data, "a");
$tijd = time();
$datum = strftime("%d-%m-%y %H:%M", $tijd);
fputs($file, "<br> <h5>Geschreven door: <a href=\"mailto:$Email\">$Naam</a> - Tijd: <i>$datum</i> <br> <hr>
<h5>Bericht:</h5> <i>$Bericht</i><br><br><hr>");
fclose($file);
?>
<?php include("view.php"); ?>
[/COLOR]
en reactie:
[COLOR="deepskyblue"]<i><font size="2" color="#ff0000">
<ol>
Geschreven door: ruud - Tijd: 11-07-10 12:17
<br>
Bericht:
<br>
Welkom in mijn gastenboek! Ik hoop dat je genoten hebt van mijn site dus laat vooral een leuk berichtje achter!! Gr Ruud
<br><i><font size="2" color="#000080"><ol>[/COLOR]
Alvast bedankt!!
Gr Ruud