html verdwijnd

  • Onderwerp starter Onderwerp starter Verwijderd lid 141197
  • Startdatum Startdatum
Status
Niet open voor verdere reacties.
als ik naar de pagina van contact.php ga zie ik niks onder het php script door die tag wordt dat pas weergeven als ik op verstuur druk:(

de code nu:
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=utf-8" />
<title>Contact-(verwijderd) de Dennenhorst</title>
<style type="text/css"></style>
<link href="css/site_contact.css" rel="stylesheet" type="text/css" media="all" />
<LINK REL="SHORTCUT ICON" HREF="http://www.(verwijderd).eu/favicon.ico">
</head>
<body>
<div class="Superbox">
<div class="Box">
<div class="Logo"></div>
<div class="Header"><img src="media/typografie/contact_.png" alt="Contact" width="203" height="38" hspace="50" vspace="6" /></div>
<div class="Site">
  <div class="Text_vol stijl1"><br />
    <br /><div class="Message"><?php
	if($_SERVER['REQUEST_METHOD'] == 'POST'){ 
$naam = htmlspecialchars($_POST["naam"]);  
$email = htmlspecialchars($_POST["e-mail"]);
$onderwerp = htmlspecialchars($_POST["onderwerp"]);
$bericht = htmlspecialchars($_POST["bericht"]);  
  
if (!$naam) {  
echo "• U heeft geen naam ingevuld!<br />";}
  
if (!$email) {  
echo "• U heeft geen e-mailadres ingevuld!<br />";}
  
  if (!$onderwerp) {  
echo "• U heeft geen onderwerp ingevuld!<br />";}  
  
if (!$bericht) {  
echo "• U heeft geen bericht ingevuld!<br />";}
  
else {  
  
$tijd = time();  
$datum = strftime("%d/%m/%y %H:%M", $tijd);  
$ip = getenv("REMOTE_ADDR");  
$message ="
Naam: " . $naam . "
E-mail: " . $email . "
Onderwerp: ". $onderwerp . "
Bericht:
--------------------------------------------------
" . $bericht . "
--------------------------------------------------
IP-adres: ". $ip . "
Datum: " . $datum . "";
 
$mailadres = "(verwijderd)";  
$message = str_replace ("<br>","\n", $message);  
  mail("$mailadres", "Contact (verwijderd)",  
    $message, "From: " . $email . "");  
      
echo "• Uw bericht is verzonden. U krijgt zo snel mogelijk antwoord.";   
}  
?></div>
    <form name="form1" method="post" action="">
<table width="500" border="0">
<tr>
<td width="140">Naam:</td>
<td width="221"><input name="naam" type="text" class="text_box"></td>
</tr>
<tr>
<td>E-mail:</td>
<td><input name="e-mail" type="text" class="text_box"></td>
</tr>
<tr>
<td>Onderwerp:</td>
<td><input name="onderwerp" type="text" class="text_box"></td>
</tr>
<tr>
<td>Bericht:</td>
<td><textarea name="bericht" class="text_box_large" cols="20"></textarea></td>
</tr>
<tr>
<td>Houdt mij op de hoogte:</td>
<td><label>
  <input name="checkbox" type="checkbox" id="checkbox" checked="checked" />
  Nieuwsbrief
  
</label></td>
</tr>
</table>
<p>
<input name="Submit" type="submit" class="Button_" value="Verstuur">
<input name="Reset" type="reset" class="Button" id="Reset" value="Reset" />
</p>
</form></div>
</div>
<div class="Bottom">
<div class="End stijl1">
  <div align="center">Alle rechten voorbehouden.<br />
© Copyright Stichting vrienden van het (verwijderd) 09</div>
</div>
</div>
<div class="MenuBox">
  <div class="Home" onClick="window.location.href='index.html'"></div>
  <div class="Nieuws" onClick="window.location.href='nieuws.html'"></div>
  <div class="Over_Ons" onClick="window.location.href='over-ons.html'"></div>
  <div class="Waar" onClick="window.location.href='waar.html'"></div>
  <div class="Fotos" onclick="window.location.href='fotos.html'"></div>
  <div class="Historie" onClick="window.location.href='historie.html'"></div>
  <div class="Contact" onClick="window.location.href='contact.php'"></div>
  <div class="Links" onClick="window.location.href='links.html'"></div>
</div>
</div>
</div>
</body>
</html>
<?php
}
?>
alvast bedankt/welke browser gebruik jij als je nu een bericht kan versturen?
 
Laatst bewerkt door een moderator:
ik gebruik internet exploter 8

maar ik kreeg zelf geen e-mail maar er stond wel een melding dat het gelukt was.

ik zal morgen eens kijken.
 
hallo,

maak er eens dit van
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=utf-8" />
<title>Contact-(verwijderd) de Dennenhorst</title>
<style type="text/css"></style>
<link href="css/site_contact.css" rel="stylesheet" type="text/css" media="all" />
<LINK REL="SHORTCUT ICON" HREF="http://www.(verwijderd).eu/favicon.ico">
</head>
<body>
<div class="Superbox">
<div class="Box">
<div class="Logo"></div>
<div class="Header"><img src="media/typografie/contact_.png" alt="Contact" width="203" height="38" hspace="50" vspace="6" /></div>
<div class="Site">
  <div class="Text_vol stijl1"><br />
    <br /><div class="Message"><?php
    if($_SERVER['REQUEST_METHOD'] == 'POST'){ 
$naam = htmlspecialchars($_POST["naam"]);  
$email = htmlspecialchars($_POST["e-mail"]);
$onderwerp = htmlspecialchars($_POST["onderwerp"]);
$bericht = htmlspecialchars($_POST["bericht"]);  
  
if (!$naam) {  
echo "• U heeft geen naam ingevuld!<br />";}
  
if (!$email) {  
echo "• U heeft geen e-mailadres ingevuld!<br />";}
  
  if (!$onderwerp) {  
echo "• U heeft geen onderwerp ingevuld!<br />";}  
  
if (!$bericht) {  
echo "• U heeft geen bericht ingevuld!<br />";}
  
else {  
  
$tijd = time();  
$datum = strftime("%d/%m/%y %H:%M", $tijd);  
$ip = getenv("REMOTE_ADDR");  
$message ="
Naam: " . $naam . "
E-mail: " . $email . "
Onderwerp: ". $onderwerp . "
Bericht:
--------------------------------------------------
" . $bericht . "
--------------------------------------------------
IP-adres: ". $ip . "
Datum: " . $datum . "";
 
$mailadres = "(verwijderd)";  
$message = str_replace ("<br>","\n", $message);  
  mail("$mailadres", "Contact (verwijderd)",  
    $message, "From: " . $email . "");  
      
echo "• Uw bericht is verzonden. U krijgt zo snel mogelijk antwoord.";   
}  
}
?></div>
    <form name="form1" method="post" action="">
<table width="500" border="0">
<tr>
<td width="140">Naam:</td>
<td width="221"><input name="naam" type="text" class="text_box"></td>
</tr>
<tr>
<td>E-mail:</td>
<td><input name="e-mail" type="text" class="text_box"></td>
</tr>
<tr>
<td>Onderwerp:</td>
<td><input name="onderwerp" type="text" class="text_box"></td>
</tr>
<tr>
<td>Bericht:</td>
<td><textarea name="bericht" class="text_box_large" cols="20"></textarea></td>
</tr>
<tr>
<td>Houdt mij op de hoogte:</td>
<td><label>
  <input name="checkbox" type="checkbox" id="checkbox" checked="checked" />
  Nieuwsbrief
  
</label></td>
</tr>
</table>
<p>
<input name="Submit" type="submit" class="Button_" value="Verstuur">
<input name="Reset" type="reset" class="Button" id="Reset" value="Reset" />
</p>
</form></div>
</div>
<div class="Bottom">
<div class="End stijl1">
  <div align="center">Alle rechten voorbehouden.<br />
© Copyright Stichting vrienden van het (verwijderd) 09</div>
</div>
</div>
<div class="MenuBox">
  <div class="Home" onClick="window.location.href='index.html'"></div>
  <div class="Nieuws" onClick="window.location.href='nieuws.html'"></div>
  <div class="Over_Ons" onClick="window.location.href='over-ons.html'"></div>
  <div class="Waar" onClick="window.location.href='waar.html'"></div>
  <div class="Fotos" onclick="window.location.href='fotos.html'"></div>
  <div class="Historie" onClick="window.location.href='historie.html'"></div>
  <div class="Contact" onClick="window.location.href='contact.php'"></div>
  <div class="Links" onClick="window.location.href='links.html'"></div>
</div>
</div>
</div>
</body>
</html>
 
Laatst bewerkt:
oke mooi zo.

als ik nog moet helpen dan hoor ik het wel.

vergeet niet op opgelost te drukken links onderaan :thumb:
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan