• Login
  • Register
  • Zoek
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Filebase Entry
  • More Options

ICTscripters

Dé plek voor IT

Dé plek voor IT

Login

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. Overige
  5. Archief
  6. Request

Forum

  • Crimora.nl

    Dennii 7 juli 2026 om 04:17
  • (Verkoop) Criminals

    Syntax 5 juli 2026 om 13:22
  • Het Grote Vibe Code Topic

    Syntax 30 juni 2026 om 11:54
  • Ictscripters Chat

    Jeffrey.Hoekman 26 juni 2026 om 16:21
  • Het oorspronkelijke Criminals Script

    Jeroen.G 24 juni 2026 om 09:21
  • StraatBaas is back, maar hoe?!

    Syntax 17 juni 2026 om 10:28
  • RPG game gebouwd met AI

    Frenzo.Webservice 11 juni 2026 om 19:44
  • PWYL source gezocht

    Syntax 29 mei 2026 om 14:03

Marktplaats

  • 306 Nieuwe Domeinnamen Juni 2026

    shiga 1 juli 2026 om 13:39
  • 4-letter domein: Togi.nl

    evesi 17 juni 2026 om 17:08
  • 359 Nieuwe Domeinnamen Mei 2026

    shiga 1 juni 2026 om 12:45

Hulp contactformulier

  • Starohosting
  • 28 juni 2011 om 19:03
  • Starohosting
    Professional
    Ontvangen Reacties
    6
    Berichten
    736
    • 28 juni 2011 om 19:03
    • #1

    Beste leden,
    Op de website http://teamsportkleding.nl staat een contact formulier.
    Volgens mij verwerkt hij het wel maar komt het niet aan op mijn email.
    Kan iemand helpen en kijken wat het probleem is.

    contact.php

    PHP
    <?php
    	if($action=="check") {  include('check_contactformulier.php'); 
    			} else {  include('contactformulier.php');	}
    ?>


    contactformulier:

    PHP
    form action="?i=contactformulier&amp;action=check" name="contactform" id="contactform" method="post">
      <table border="0" cellpadding="2" cellspacing="0" >
      <tr>
        <td height="4" colspan="6" align="right" valign="middle" nowrap="nowrap"></td>
        </tr>
      <tr>
        <td valign="middle" nowrap="nowrap">Bedrijf </td>
        <td colspan="3" valign="middle" nowrap="nowrap">:       
          <input name="Bedrijf" type="text" class="veld" id="Bedrijf" size="22" /></td>
        <td width="10" rowspan="7" align="right" valign="middle" nowrap="nowrap"></td>
        <td rowspan="7" align="right" valign="top"><textarea name="Bericht" cols="35" rows="7" class="textarea" id="Bericht"></textarea></td>
      </tr>
      <tr>
        <td valign="middle">Naam <font class="rood">*</font></td>
        <td colspan="3" valign="middle" nowrap="nowrap">:
          <input type="text" name="Naam" size="21" class="veld"  /></td>
        </tr>
      <tr>
        <td valign="middle" nowrap="nowrap">Adres</td>
        <td colspan="3" valign="middle" nowrap="nowrap"> :
          <input name="Adres" type="text" class="veld" id="Adres" size="21" /></td>
        </tr>
      <tr>
        <td valign="middle" nowrap="nowrap">Postcode &nbsp;</td>
        <td colspan="3" valign="middle" nowrap="nowrap">:
          <input name="Postcode" type="text" class="veld" id="Postcode" size="21" maxlength="7" /></td>
        </tr>
      <tr>
        <td valign="middle">Plaats</td>
        <td colspan="3" valign="middle" nowrap="nowrap">:
          <input name="Plaats" type="text" class="veld" id="Plaats" size="21" /></td>
        </tr>
      <tr>
        <td valign="middle">Telefoon</td>
        <td colspan="3" valign="middle" nowrap="nowrap"> :
          <input name="Telefoon" type="text" class="veld" id="Telefoon" size="21" /></td>
        </tr>
      <tr valign="top">
        <td valign="middle"><div align="left">E-mail <font class="rood">*</font></div></td>
        <td colspan="3" valign="middle" nowrap="nowrap"> :
          <input type="text" name="Email" id="Email" size="21" class="veld" /></td>
        </tr>
      <tr valign="bottom">
        <td height="4" colspan="6" align="right" valign="top" nowrap="nowrap" ></td>
      </tr>  
      <tr valign="bottom">
        <td height="4" colspan="6" align="right" valign="bottom" nowrap="nowrap"  style="background : url(../images/dots.gif); background-repeat:repeat-x" ></td>
      </tr>
      <tr valign="bottom">
        <td height="4" colspan="6" align="right" valign="top" nowrap="nowrap" ></td>
      </tr>
      <tr valign="bottom">
        <td colspan="6" valign="top" align="right" ><input type="reset" name="Reset" value="wissen " class="button" />
    &nbsp; <input name="submit" type="submit" class="button" value="formulier verzenden" /></td>
      </tr>
    </table>
    </form>
    Toon Meer


    checkformulier:

    PHP
    <?php
    $check = "";
    	$date= date ("d-m-Y");
    	$time= date ("H:i");
    	$Postcode = str_replace(" ","",$Postcode);
    	$Telefoon = str_replace(" ","",$Telefoon);
    
    
    	$Naam = htmlentities($Naam);
    	$Plaats = htmlentities($Plaats);
    	$Adres = htmlentities($Adres);
    	$Postcode = htmlentities($Postcode);
    	$Telefoon = htmlentities($Telefoon);
    	
    	
    	$Bericht = ereg_replace("\r","<br />",$Bericht);
    	$Bericht = ereg_replace("&","&amp;",$Bericht);
    			
    	if ($Naam == "") {
    		$font_Naam = "<font class=\"rood\">Naam *</font>";
    		$field_Naam = "notok";
    	} else {
    		$font_Naam = "Naam *";
    		$field_Naam = "ok";
    	}
    
    
    if($Email=="") { 
    		$font_Email = "<font class=\"rood\">E-mail *</font>";
    		$field_Email = "notok"; 
    		} else if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6}$", $Email)) { 
    		$font_Email = "<font class=\"rood\">E-mail *</font>";
    		$field_Email = "notok"; 
    	} else { 
    	$font_Email = "E-mail *";
    	$field_Email = "ok";
     }
    		
    		if ($Bericht == "") {
    		$font_Bericht = "<font class=\"rood\">*</font>";
    		$field_Bericht = "notok";
    		$focus="";
    	} else {
    		$font_bericht = "";
    		$field_Bericht = "ok";
    		$focus="";
    	}
    	
    if (($field_Naam == "ok") && ($field_Email == "ok") && ($field_Bericht == "ok")){
    	
    // send message
    $to = "[email protected]";
    //$to = "[email protected]";
    //$ccTo = "";
    $owner="Van Rutten Promotion";
    $subject ="Bericht via de website teamsportkleding.nl";
    
    
    $body ="<HTML> \n"; 
    $body .="<HEAD><TITLE>Van Rutten Promotion</TITLE>
            <style type=\"text/css\"> 
                body { font-family: Verdana, Arial; font-size:12px; } 
                td { font-family: Verdana, Arial; font-size:12px; } 
            </style> \n";  
    $body .="</HEAD><BODY> \n";
    $body .="<table width=\"500\" border=\"0\" cellpadding=\"2\"> \n";
    $body .="<tr><td><img src=\"http://www.teamsportkleding.nl/mail/logo.gif\" alt=\"Logo\" width=\"500\" height=\"55\"/></td></tr> \n";
    $body .="<tr><td><br /> \n";
    $body .=" Bedrijf : $Bedrijf<br /> \n";
    $body .=" Naam : $Naam<br /> \n";
    $body .=" Adres : $Adres<br /> \n";
    $body .=" Postcode : $Postcode<br /> \n";
    $body .=" Plaats : $Plaats<br /> \n";
    $body .=" Telefoon : $Telefoon<br /> \n";
    $body .=" E-mail : $Email<br />  \n";
    $body .=" Telefoon : $Telefoon<br /><br /> \n";
    $body .=" <b>Bericht :</b><br /> \n";
    $body .="</td></tr> \n";
    $body .="<tr><td>$Bericht <br /><br /></td></tr> \n";
    $body .="<tr><td><img src=\"http://www.teamsportkleding.nl/mail/lijn.gif\" alt=\"Lijn\" width=\"500\" height=\"6\"/></td></tr> \n";
    $body .="<tr><td><small>Dit bericht is via www.teamsportkleding.nl verzonden op : $date om $time</small></td></tr> \n";
    $body .="</table> \n";
    $body .="</BODY><HTML> \n";
    
    
       	$header  = "MIME-Version: 1.0\n";
        $header .= "Content-type: text/html; charset=iso-8859-1\n";
        $header .= "From: <$Email>\n";
        $headers .= "Return-Path: <$to>\n";
    	$header .= "Reply-To: $Email <$Email>\n"; 
    		  
    
    
        mail($to, $subject, $body, $header); 
    		
    // replay sender	
    
    
    $subject2 ="Uw bericht aan Van Rutten Promotion van: $date";
    
    
    $body2 ="<html> \n"; 
    $body2 .="<head><title>Van Rutten Promotion</title>
            <style type=\"text/css\"> 
                body { font-family: Verdana, Arial; font-size:12px; } 
                td { font-family: Verdana, Arial; font-size:12px; } 
            </style> \n";  
    $body2 .="</head><body> \n";
    $body2 .="<table width=\"500\" border=\"0\" cellpadding=\"2\"> \n";
    $body2 .="<tr><td><img src=\"http://www.teamsportkleding.nl/mail/logo.gif\" alt=\"Logo\" width=\"500\" height=\"55\"/></td></tr> \n";
    $body2 .="<tr><td><br />Beste $Naam,<br /><br />Wij hebben uw bericht ontvangen, en deze wordt zo spoedig mogelijk verwerkt !<br /><br /><br />Met vriendelijke groet,<br />Van Rutten Promotion<br /><br /></td></tr> \n";
    $body2 .="<tr><td><img src=\"http://www.teamsportkleding.nl/mail/lijn.gif\" alt=\"Lijn\" width=\"500\" height=\"6\"/></td></tr> \n";
    $body2 .="</table> \n";
    $body2 .="</body><html> \n";
    
    
       	$headers2  = "MIME-Version: 1.0\n";
        $headers2 .= "Content-type: text/html; charset=iso-8859-1\n";
        $headers2 .= "From: $owner <$to>\n";
        $headers2 .= "Return-Path: <$to>\n";
        mail($Email, $subject2, $body2, $headers2); 
    
    
    // einde replay to sender
    	
    echo"<META HTTP-EQUIV=\"refresh\" content=\"4;URL=../vanrutten/contact.php\";clearstatcache(); >";
    ?>
    <br />
    <h4 style="margin-bottom:20px;">Uw bericht wordt verzonden !</h4>
    <p style="margin-bottom:138px;">Er wordt een bevestiging verzonden naar uw e-mailadres.</p>
    <?php
    } else {
    ?>
    <form action="?i=contactformulier&amp;action=check" name="contactform" id="contactform" method="post">
      <table border="0" cellpadding="2" cellspacing="0" >
        <tr>
          <td height="4" colspan="6" align="right" valign="middle" nowrap="nowrap"></td>
        </tr>
        
        <tr>
          <td valign="middle" nowrap="nowrap">Bedrijf </td>
          <td colspan="3" valign="middle" nowrap="nowrap">:
            <input name="Bedrijf" type="text" class="veld" id="Bedrijf" value="<?php echo"$Bedrijf"; ?>" size="22" /></td>
          <td width="10" rowspan="7" align="right" valign="top" nowrap="nowrap"><font class="rood"><strong><?php echo "$font_Bericht"; ?></strong></font></td>
          <td rowspan="7" align="right" valign="top"><textarea name="Bericht" cols="35" rows="7" class="textarea" id="Bericht"><?php echo"$Bericht"; ?></textarea></td>
        </tr>
        <tr>
          <td valign="middle"><?php echo "$font_Naam"; ?></td>
          <td colspan="3" valign="middle" nowrap="nowrap">:
            <input name="Naam" type="text" class="veld" value="<?php echo"$Naam"; ?>" size="21"  /></td>
        </tr>
        <tr>
          <td valign="middle" nowrap="nowrap">Adres</td>
          <td colspan="3" valign="middle" nowrap="nowrap"> :
            <input name="Adres" type="text" class="veld" id="Adres" value="<?php echo"$Adres"; ?>" size="21" /></td>
        </tr>
        <tr>
          <td valign="middle" nowrap="nowrap">Postcode &nbsp;</td>
          <td colspan="3" valign="middle" nowrap="nowrap">:
            <input name="Postcode" type="text" class="veld" id="Postcode" value="<?php echo"$Postcode"; ?>" size="21" maxlength="7" /></td>
        </tr>
        <tr>
          <td valign="middle">Plaats</td>
          <td colspan="3" valign="middle" nowrap="nowrap">:
            <input name="Plaats" type="text" class="veld" id="Plaats" value="<?php echo"$Plaats"; ?>" size="21" /></td>
        </tr>
        <tr>
          <td valign="middle">Telefoon </td>
          <td colspan="3" valign="middle" nowrap="nowrap"> :
            <input name="Telefoon" type="text" class="veld" id="Telefoon" value="<?php echo"$Telefoon"; ?>" size="21" /></td>
        </tr>
        <tr valign="top">
          <td valign="middle"><?php echo "$font_Email"; ?></td>
          <td colspan="3" valign="middle" nowrap="nowrap"> :
            <input name="Email" type="text" class="veld" id="Email" value="<?php echo"$Email"; ?>" size="21" /></td>
        </tr>
        <tr valign="bottom">
          <td height="4" colspan="6" align="right" valign="top" nowrap="nowrap" ></td>
        </tr>
        <tr valign="bottom">
          <td height="4" colspan="6" align="right" valign="bottom" nowrap="nowrap"  style="background : url(../images/dots.gif); background-repeat:repeat-x" ></td>
        </tr>
        <tr valign="bottom">
          <td height="4" colspan="6" align="right" valign="top" nowrap="nowrap" ></td>
        </tr>
        <tr valign="bottom">
          <td colspan="6" valign="top" align="right" ><input type="reset" name="Reset" value="wissen " class="button" />
    &nbsp; <input name="submit" type="submit" class="button" value="formulier verzenden" /></td>
        </tr>
      </table>
    </form>
    <?php
    }
    ?>
    Toon Meer

    Hosting nodig met hoogwaardige kwaliteit? voor lage prijzen!
    Bekijk onze website: hostingkwaliteit.com

    Heb ik je goed geholpen? geef me dan een drankje via:
    paypal.me

  • Tim
    Enlightened
    Ontvangen Reacties
    77
    Berichten
    3.685
    • 28 juni 2011 om 19:12
    • #2

    Waar wordt $Email gedefineerd?

    Master student IT-recht en Master student Ondernemingsrecht & software ingenieur
    My Personal profile
    My professional profile (LinkedIn/CV)

  • Starohosting
    Professional
    Ontvangen Reacties
    6
    Berichten
    736
    • 28 juni 2011 om 19:56
    • #3

    brokentrack hoe bedoel je??

    Hosting nodig met hoogwaardige kwaliteit? voor lage prijzen!
    Bekijk onze website: hostingkwaliteit.com

    Heb ik je goed geholpen? geef me dan een drankje via:
    paypal.me

  • L.Groot
    Elite members
    Ontvangen Reacties
    31
    Berichten
    4.888
    • 28 juni 2011 om 20:06
    • #4

    Waar je de variabele $Email aanmaakt ;).

  • Starohosting
    Professional
    Ontvangen Reacties
    6
    Berichten
    736
    • 28 juni 2011 om 20:16
    • #5

    geen idee waar dat word gedaan.
    Hoe kan ik daar achter komen.

    Hosting nodig met hoogwaardige kwaliteit? voor lage prijzen!
    Bekijk onze website: hostingkwaliteit.com

    Heb ik je goed geholpen? geef me dan een drankje via:
    paypal.me

  • pekelterror
    Professional
    Ontvangen Reacties
    13
    Berichten
    608
    • 28 juni 2011 om 22:09
    • #6

    Zoals Brokentrack en L.Groot al zeiden, in dit script word de variable $Email niet aangemaakt.

    Kan verholpen worden door een variable $Email te maken met de Post gegevens die je in Email van het formulier mee stuurt.

    PS: Denk dat je bedoeld dat de gebruiker zelf geen email krijgt wat hij stuurde?
    Want de email naar jou zelf lijkt goed te staan

Participate now!

Heb je nog geen account? Registreer je nu en word deel van onze community!

Maak een account aan Login

ICT Nieuws

  • Quanscient ontvangt €10M om AI- en kwantum-native hardware engineering te bevorderen - Tech.eu

    ICTscripters 27 mei 2026 om 12:03
  • Datalek bij leverancier Canvas - Universiteit van Amsterdam

    ICTscripters 10 mei 2026 om 12:03
  • Data privacy in 2026: Hoe de naleving van GDPR verandert

    ICTscripters 8 mei 2026 om 12:16

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37

Gebruikers die dit topic bekijken

  • 1 Gasten
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacy Policy
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen | Beste Zetes eid kaartlezer webshop
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design