Hoi,
ik wou een anoniem mailscriptje maken,maar hij werkt niet helemaal goed!
weet iemand wat er mis is???????
dit is de index.php
dit is de verwerk.php
ik wou een anoniem mailscriptje maken,maar hij werkt niet helemaal goed!
weet iemand wat er mis is???????
dit is de index.php
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Anoniem Mailen!, Gratis en voor niks zonder reclame!, grijp je kans!</title>
<style type="text/css">
body,td,th {
font-family: Verdana, Geneva, sans-serif;
color: #CCC;
font-size: 18px;
}
body {
background-color: #000;
background-image: url(images/images.jpg);
background-repeat: repeat;
}
.form {
color:#CCC;
background-color:#000;
font-weight:bold;
opacity:0.8;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="verwerk.php">
<p> </p>
<p> </p>
<p> </p>
<table width="500" border="0" align="center">
<tr>
<th width="200" align="right" scope="col">Aan: </th>
<th width="200" align="left" scope="col">
<input name="aan" type="text" class="form" />
</th>
</tr>
<tr>
<th align="right" scope="col">Van: </th>
<th align="left" scope="col">
<input name="van" type="text" class="form" />
</th>
</tr>
<tr>
<th align="right" scope="col"> </th>
<th align="left" scope="col"> </th>
</tr>
<tr>
<th align="right" scope="col">Onderwerp: </th>
<th align="left" scope="col">
<input name="onderwerp" type="text" class="form" /></th>
</tr>
<tr>
<th align="right" valign="top" scope="col">Bericht: </th>
<th align="left" scope="col">
<textarea name="bericht" cols="45" rows="5" class="form"></textarea></th>
</tr>
<tr>
<th align="right" valign="top" scope="col"> </th>
<th align="left" scope="col"> </th>
</tr>
<tr>
<th align="right" valign="top" scope="col">Hoe vaak: </th>
<th align="left" scope="col">
<input name="aantal" type="text" class="form" size="1" maxlength="1" />
</th>
</tr>
<tr>
<th align="right" valign="top" scope="col"> </th>
<th align="left" scope="col"> </th>
</tr>
<tr>
<th align="right" valign="top" scope="col"> </th>
<th align="left" scope="col"><input name="verzenden" type="submit" class="form" value="Verzenden" /></th>
</tr>
</table>
</form>
</body>
</html>
dit is de verwerk.php
HTML:
<?php
if (isset($_POST['verzenden'])) {
$aan = $_POST["aan"];
$van = $_POST["van"];
$onderwerp = $_POST["onderwerp"];
$bericht = $_POST["bericht"];
$aantal = $_POST["aantal"];
mail($aan, $onderwerp, $bericht, "from: $van");
header("location: index.php");
}
?>