hallo allemaal,
ik heb een website gemaakt(hij is nog niet af)
www.swenveenstra.nl
nu heb ik daar een contact formulier maar dat doet het niet.
weet iemand wat ik fout doe ?
dit is de html:
(ik heb ook een andere site en daar doet hij het wel, www.poker-unit.nl)
ik heb een website gemaakt(hij is nog niet af)
www.swenveenstra.nl
nu heb ik daar een contact formulier maar dat doet het niet.
weet iemand wat ik fout doe ?
dit is de html:
Code:
<!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=iso-8859-1" />
<title>contact pagina</title>
<style type="text/css">
<!--
.style1 {font-size: 12px}
body {
background-image: url(afbeeldingen/zertxtr.gif);
}
body,td,th {
color: #FF0000;
}
-->
</style>
<meta name="keywords" content="swen veenstra swenveenstra vtb buitenpost friesland vtb swveenstra hyves links contact poker unit 10101 101 home over mij overmij contactpagina pagina website maken webmaken" />
<meta name="description" content="De website over swen veenstra" />
<meta name="copyright" content="swen veenstra 2008" />
<meta name="robots" content="all" />
<meta http-equiv="pragma" content="no-cache" />
</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="20" title="Home">
<param name="movie" value="home.swf" />
<param name="quality" value="high" />
<embed src="home.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="20" ></embed>
</object>
<br/>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="20" title="links">
<param name="movie" value="button2.swf" />
<param name="quality" value="high" />
<embed src="button2.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="20" ></embed>
</object>
<br />
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="20" title="over mij">
<param name="movie" value="button3.swf" />
<param name="quality" value="high" />
<embed src="button3.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="20" ></embed>
</object>
<br />
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="20" title="contact">
<param name="movie" value="button6.swf" />
<param name="quality" value="high" />
<embed src="button6.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="20" ></embed>
</object>
<br />
<p align="center">Uw
Naam: <br>
<input name="naam" type="text" value="">
<br>
Uw
E-mail: <br><input name="email" type="text" value=""></p>
<p align="center">Uw Bericht:<br>
<textarea name="bericht" rows="7" cols="45"></textarea><br>
<input type="submit" name="Submit" value="Verzenden">
<br />
<br />
indien het bovenstaande formulier niet werkt, kunt u een mail sturen naar<br />swen veenstra<br />swen@swenveenstra.nl
</body>
</html>
en dit de php:
<!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=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body><br />
<?php
$naam = htmlspecialchars($_POST['naam']);
$email = htmlspecialchars($_POST['email']);
$bericht = htmlspecialchars($_POST['bericht']);
if (!$naam) {
echo "U heeft geen naam ingevuld!";
exit; }
if (!$email) {
echo "U heeft geen e-mailadres ingevuld!";
exit; }
if (!$bericht) {
echo "U heeft geen bericht ingevuld!";
exit; }
else {
$tijd = time();
$datum = strftime("%d/%m/%y %H:%M", $tijd);
$ip = getenv("REMOTE_ADDR");
$message = "" . $naam . " met het e-mailadres " . $email . " en het IP $ip stuurde op $datum het volgende bericht:
____________________________________
" . $bericht . "
------------------------------------";
$mailadres = "swen@swenveenstra.nl";
$message = str_replace ("<br>","\n", $message);
mail("$mailadres", "Bericht van www.swenveenstra.nl",
$message, "From: " . $email . "");
echo "Uw bericht is met succes verzonden. We helpen U zo snel mogelijk.";
}
?>
</body>
</html>
(ik heb ook een andere site en daar doet hij het wel, www.poker-unit.nl)
Laatst bewerkt door een moderator: