contectformulier verzend niet

Status
Niet open voor verdere reacties.

g3x123

Gebruiker
Lid geworden
23 mrt 2009
Berichten
204
Hey iedereen,

ik heb een contact formulier generator gebruikt (http://scriptgenerator.net/html-php-contact-form-mailer-generator/)
wanneer ik dit formulier gebruik op mijn privé site werkt het perfect, krijg ik onmiddellijk een email
als ik IDENTIEK dezelfde bestanden kopieer naar een andere website ftp en identiek hetzelfde contactformulier invul krijg ik geen mail...
iemand een idee hoe dit komt?

(maw het formulier werkt perfect, enkel werkt het zo te zien niet op 1 bepaalde website :mad: )

Thx!
 
Kijk of je hosting email ondersteund, zoniet, dan is dat je probleem
 
Maak een phpfile aan en zet hierin de volgende code:

PHP:
<?php
phpinfo();
?>

Open dan dit bestand in de browser en zoek naar sendmail. Staat deze aan of uit?
 
Maak een phpfile aan en zet hierin de volgende code:

PHP:
<?php
phpinfo();
?>

Open dan dit bestand in de browser en zoek naar sendmail. Staat deze aan of uit?


sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i -f een_email@mailadres /usr/sbin/sendmail -t -i

Path to sendmail /usr/sbin/sendmail -t -i -f een_email@mailadres

Sendmail Milter Harald Radi



Wanneer ik kijk in de ftp is er geen map usr of sbin te vinden? Kan dit hier aan liggen?
 
Laatst bewerkt:
Dat je deze map niet kunt vinden klopt, deze staat op een hoger niveau bij je hosting, waar je als klant niet bij kunt en hoeft te komen.

Het lijkt erop dat sendmail niet geactiveerd is, je zou daarvoor contact kunnen opnemen met je hostingpartij.
Een alternatieve manier is phpmailer te gebruiken, eventueel via de smtp servers. (Dit werkt omdat je aangeeft dat er emailadressen bestaan voor het domein)

Wil je dit proberen en heb je hier hulp bij nodig, laat het dan weten!
 
Dat je deze map niet kunt vinden klopt, deze staat op een hoger niveau bij je hosting, waar je als klant niet bij kunt en hoeft te komen.

Het lijkt erop dat sendmail niet geactiveerd is, je zou daarvoor contact kunnen opnemen met je hostingpartij.
Een alternatieve manier is phpmailer te gebruiken, eventueel via de smtp servers. (Dit werkt omdat je aangeeft dat er emailadressen bestaan voor het domein)

Wil je dit proberen en heb je hier hulp bij nodig, laat het dan weten!

Thanks Hiddehoi!
hostingpartij is via mijn werk, met DirectAdmin.
Hoe of waar kan ik dit vinden/aanzetten?
Indien ik dit niet zou vinden, hoe werk ik dan via phpmailer? Is de eerste keer en ben hier niet bepaald een krak in :D
Thanks again guys :)
 
Sendmail kun je niet zelf aanzetten, al dan niet via directadmin. Je zult dan echt even de systeembeheerder moeten vragen.

Ik zal voor phpmailer even een script schrijven, misschien vanavond nog even, anders morgen.
Edit:
Ik zie op de github pagina een redelijk goed voorbeeld staan. Hierbij even wat uitleg:
Download als eerste hier van github (https://github.com/PHPMailer/PHPMailer)de bestanden class.phpmailer.php, class.smtp.php en PHPMailerAutoload.php en plaats deze in de map waar je wilt mailen.

Vervolgens is dit het meest basis script om een mail te sturen, wanneer je jouw huidige script even wilt posten zal ik hem helemaal goed voor je maken.
Sowieso is phpmailer aan te raden boven sendmail, dus maak hier in de toekomst dan ook gebruik van als je de kennis eenmaal hebt.

Hierbij het mail script, nog niet getest maar het zal zeer waarschijnlijk werken. Zie het commentaar voor de uitleg.

PHP:
<?php
require 'PHPMailerAutoload.php';

$mail = new PHPMailer;

$mail->isSMTP();                                      // SMTP aanzetten
$mail->Host = 'smtp1.server.com';  // Stel hier je SMTP server in (te vinden via directadmin)
$mail->SMTPAuth = true;                               // SMTP authenticatie instellen
$mail->Username = 'user@example.com';                 // SMTP gebruikersnaam
$mail->Password = 'secret';                           // SMTP wachtwoord
$mail->SMTPSecure = 'tls';                            // TLS Encryptie inschakelen indien vereist, dit kan ook ssl zijn of leeg.
$mail->Port = 587;                                    // De SMTP poort om mee te verbinden (meestal is 587 goed, ook te vinden via directadmin)

$mail->From = 'from@example.com';						//Van welk email adres moet de mail verzonden worden? (Hoeft niet echt te bestaan)
$mail->FromName = 'Server Contactformulier';								//Welke naam moet de afzender krijgen?
$mail->addAddress('email@email.com', 'Pietje Puk');     // Ontvanger toevoegen, naam mag eventueel weg.

$mail->isHTML(true);                                  // Eventueel mailopmaak naar html zetten.

$mail->Subject = 'Onderwerp';					//Onderwerp van de mail
$mail->Body    = 'Dit is de inhoud <b>VET</b>'; //Inhoud van de mail

if(!$mail->send()) {
    echo 'Bericht kon niet verzonden worden';
    echo 'Mail Error: ' . $mail->ErrorInfo;
} else {
    echo 'Bericht is verzonden!';
}
?>

Ik denk dat je nog wel hulp nodig hebt, dus vraag het dan gerust!
 
Laatst bewerkt:
Ik denk dat je nog wel hulp nodig hebt, dus vraag het dan gerust!

Awesome dat je me zo wil helpen :)! really appreciate it!

nu, dit is mijn code:

PHP:
<?php
require 'http://www.hdi-gerling.lu/mailer/PHPMailerAutoload.php';
 
$mail = new PHPMailer;
 
$mail->isSMTP();                                      // SMTP aanzetten
$mail->Host = 'mail.hdi-gerling.be';  // Stel hier je SMTP server in (te vinden via directadmin)
$mail->SMTPAuth = true;                               // SMTP authenticatie instellen
$mail->Username = 'mailer@hdi-gerling.be';                 // SMTP gebruikersnaam
$mail->Password = 'mijn_wachtwoord';                           // SMTP wachtwoord
$mail->SMTPSecure = 'tls';                            // TLS Encryptie inschakelen indien vereist, dit kan ook ssl zijn of leeg.
$mail->Port = 587;                                    // De SMTP poort om mee te verbinden (meestal is 587 goed, ook te vinden via directadmin)
 
$mail->From = 'mailer@hdi-gerling.be';                       //Van welk email adres moet de mail verzonden worden? (Hoeft niet echt te bestaan)
$mail->FromName = 'HDI-Gerling Contact form';                                //Welke naam moet de afzender krijgen?
$mail->addAddress('kevin@compoint.be');     // Ontvanger toevoegen, naam mag eventueel weg.
 
$mail->isHTML(true);                                  // Eventueel mailopmaak naar html zetten.
 
$mail->Subject = 'Contactformulier';                   //Onderwerp van de mail
$mail->Body    = 'Dit is de inhoud <b>VET</b>'; //Inhoud van de mail
 
if(!$mail->send()) {
    echo 'Bericht kon niet verzonden worden';
    echo 'Mail Error: ' . $mail->ErrorInfo;
} else {
    echo 'Bericht is verzonden!';
}
?>


dit zijn stukken van de contact pagina:

HTML:
<script language="JavaScript" type="text/JavaScript">

<!--

function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}



function MM_validateForm() { //v4.0

  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;

  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);

    if (val) { nm=val.name; if ((val=val.value)!="") {

      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');

        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';

      } else if (test!='R') { num = parseFloat(val);

        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';

        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');

          min=test.substring(8,p); max=test.substring(p+1);

          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';

    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }

  } if (errors) alert('The following error(s) occurred:\n'+errors);

  document.MM_returnValue = (errors == '');

}

//-->

        </script>

en

HTML:
<form action="http://hdi-gerling.lu/cgi-bin/formmail.pl" method="post" name="contact" class="form" id="contact" onsubmit="MM_validateForm('voornaam','','R','Nom','','R','Bureau','','R','prefix','','R','Tél','','R','email','','R');return document.MM_returnValue">

					  <input type="hidden" name="recipient" value="info@hdi-gerling.lu">

         			  <input type="hidden" name="subject" value="Formulaire de Contact">

          			  <input type="hidden" name="redirect" value="http://hdi-gerling.lu/thanksfr.htm">

					  <ul id="formList">

					    <li class="formHeader">FORMULAIRE DE CONTACT   - Vos données

						  </li>

						  <li>

							  <div class="label indent">

								  <label for="forename">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* Champs obligatoires</label>

							  </div>

						  </li>

						  <li>

							    <div class="label indent">

							      <label for="forename">Pr&eacute;nom* :</label>

					        </div>

						      <input name="Prénom" type="text" class="firstInputField errorForm" id="voornaam" onblur="MM_validateForm('voornaam','','R');return document.MM_returnValue" maxlength="500" />

						      <div class="clearBoth"></div>

					    </li>

						  <li onfocus="MM_validateForm('Nom','','R');return document.MM_returnValue">

							  <div class="label indent">

								  <label for="surename">Nom* :</label>

							  </div>

							  <input class="firstInputField errorForm" name="Nom" id="Nom" maxlength="500" type="text" />

							  <div class="clearBoth"></div>

						  </li>

						  <li>

							  <div class="label indent">

								  <label for="street">Bureau* :</label>

							  </div>

							  <input name="Bureau" type="text" class="firstInputField errorForm" id="Bureau" onblur="MM_validateForm('Bureau','','R');return document.MM_returnValue" maxlength="500" />

							  <div class="clearBoth"></div>

						  </li>

						  <li>

							  <div class="label indent">

								  <label for="newStreet">Adresse :</label>

							  </div>

							  <input class="firstInputField" name="Adresse" id="Adresse" maxlength="500" type="text" />

							  <div class="clearBoth"></div>

						  </li>

						  <li>

							  <div class="label indent">

								  <label>Pays / Code Postal / Ville :</label>

							  </div>

							  <input name="Pays" type="text" class="firstInputField country" id="Pays" value="L" maxlength="2" />

							  <input class="inputField zipcode" name="Code_Postal" id="Code_Postal" maxlength="500" type="text" />

							  <input class="inputField city" name="Ville" id="Ville" maxlength="500" type="text" />

							  <div class="clearBoth"></div>

						  </li>

						  <li>

							  <div class="label indent">

								  <label>Num&eacute;ro de t&eacute;l&eacute;phone* :</label>

							  </div>

							  <input name="prefix" type="text" class="firstInputField errorForm areaCode" id="prefix" onblur="MM_validateForm('prefix','','R');return document.MM_returnValue" maxlength="500" />

							  <input name="Tél" type="text" class="inputField errorForm directDial" id="Tél" onblur="MM_validateForm('Tél','','R');return document.MM_returnValue" maxlength="500" />

							  <div class="clearBoth"></div>

						  </li>	

						 

						  <li>

							  <div class="label indent">

								  <label for="eMail">E-mail* :</label>

							  </div>

							  <input name="email" type="text" class="firstInputField errorForm" id="email" onblur="MM_validateForm('email','','R');return document.MM_returnValue" maxlength="500" />

							  <div class="clearBoth"></div>

						  </li>

						   <li>

							  <div class="label indent mt1">

								  <label for="notice">Votre question:</label>

							  </div>

							  <textarea class="indent" name="notice" id="notice" rows="10" cols="10"></textarea>

							  <div class="clearBoth"></div>

						  </li>

						  <li class="formHeader">

							  Comment souhaitez-vous être contacté?:

						  </li>

						  <li class="indentText">

							  <input name="communication" id="telefonisch" value="telefonisch" type="radio" />

							  <label class="labelRadio" for="telefonisch">par t&eacute;l&eacute;phone </label>

							  <label class="labelRadio" for="schriftelijk"></label>

							  <input name="communication" id="eMail" value="eMail" type="radio" />

							  <label class="labelRadio" for="eMail">par e-mail</label>

                              <br />

                              <br />

					    </li>

						  

					  <li class="indentText"><span class="boldText2">

					    <input name="Envoyer" type="submit" class="box2" id="Envoyer" value="Envoyer le formulaire" />

					  </span> </li>

					  </ul>

			  </form>


hoe kan ik er nu voor zorgen dat alles begint te werken? :D
 
Laatst bewerkt:
Ik zie dat de verwerking via javascript verder gaat, deze kan natuurlijk niet mailen.
In het makkelijkste geval kan je gewoon de content van de mail vervangen bij $mail -> $content bijvoorbeeld.
Als je niet zo'n variabele hebt is het wat lastiger, maar zeker te doen.

Ik zal zometeen er even voor gaan zitten, dan denk ik dat ik het gehele script even opnieuw schrijf, dan weet ik tenminste hoe alles zit.
 
even snel de files die ik had:

Contact pagina:

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" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
		<title>HDI Gerling Assurances SA</title>
	
		<link href="css/hdi_gerling.css" rel="stylesheet" type="text/css" media="all" />
		<link href="css/hdi_gerling_print.css" rel="stylesheet" type="text/css" media="print" />
	
		<!--[if IE 6]>
			<link href="css/hdi_gerling_ie6.css" rel="stylesheet" type="text/css" media="all" />
		<![endif]-->
	
		<!--[if IE 7]>
			<link href="css/hdi_gerling_ie7.css" rel="stylesheet" type="text/css" media="all" />
		<![endif]-->
	
	    <style type="text/css">
<!--
a:link {
	text-decoration: none;
	color: #009E31;
}
a:visited {
	text-decoration: none;
	color: #009E31;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
.style6 {font-size: 12px}
.style10 {font-size: 16px}
.style11 {color: #999999}
-->
        </style>
	    <script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
        </script>
	</head>
	
	<body>
		<div id="box"><!-- Box Start -->
			
		  <div id="header"><!-- Header Start -->
				<div id="banner"><img src="images/headers/plaza.jpg" alt="Banner Dummy" width="976" height="176" /></div>
				<div id="meta"><!-- Meta Start -->
					<div class="targetLocation colorBackground">
						
						<a href="indexhomefr.htm" class="targetLocationRight"><img src="gfx/home_icon.gif" alt="Home" height="8" border="0" class="homeIcon" /></a>
					</div>
					<div class="metaNav"><!-- Meta Start -->
					
                      <span class="style6">&zwnj;</span></div>
				</div><!-- Meta End -->
				<div id="logo"><a href="#"><img src="gfx/hdi_gerling_logo.gif" alt="HDI Gerling" /></a></div>
				<div id="claim"><img src="gfx/great_risks_deserve.gif" alt="Wij denken vooruit." width="480" height="120" /></div>
		  </div><!-- Header End -->
			
			<div id="topNav"><!-- Top Navigation Start -->
				<ul>
					<li class="topNavItem"><a href="indexhomefr.htm">Home</a></li>
                    <li class="topNavItem"><a href="verzekeringstakkenfr.htm">Assurer </a></li>
                    <li class="topNavItem"><a href="hdigerlingfr.htm">A propos de nous </a></li>
					<li class="topNavItem"><a href="informations.htm">Informations</a></li>
					<li class="topNavItem"><a href="jobsfr.htm">Jobs@</a></li>
					<li class="topNavItem"><a href="formcontactfr.htm">Contact</a></li>
					<li class="topNavItem"><a href="presse.html">Presse</a></li>
                    <li class="topNavItem"><a href="download.htm">Download</a></li>
				</ul>
			</div><!-- Top Navigation End -->
			
			<div id="content"><!-- Content Start -->
				<div id="left"><!-- Left Start -->
				
				<div id="searchForm"><!-- Search Form Start -->

				  </div><!-- Search Form End -->
				</div><!-- Left End -->
			  <div id="middle"><!-- Middle Start -->
					<h1 class="firstItem style10">Contact<br />
			  </h1>
					<form action="http://hdi-gerling.lu/mailer/mailer.php" method="post" name="contact" class="form" id="contact" onsubmit="MM_validateForm('voornaam','','R','Nom','','R','Bureau','','R','prefix','','R','Tél','','R','email','','R');return document.MM_returnValue">
					  <input type="hidden" name="recipient" value="kevin@compoint.be">
         			  <input type="hidden" name="subject" value="Formulaire de Contact">
          			  <input type="hidden" name="redirect" value="http://hdi-gerling.lu/thanksfr.htm">
					  <ul id="formList">
					    <li class="formHeader">FORMULAIRE DE CONTACT   - Vos données
						  </li>
						  <li>
							  <div class="label indent">
								  <label for="forename">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* Champs obligatoires</label>
							  </div>
						  </li>
						  <li>
							    <div class="label indent">
							      <label for="forename">Pr&eacute;nom* :</label>
					        </div>
						      <input name="Prénom" type="text" class="firstInputField errorForm" id="voornaam" onblur="MM_validateForm('voornaam','','R');return document.MM_returnValue" maxlength="500" />
						      <div class="clearBoth"></div>
					    </li>
						  <li onfocus="MM_validateForm('Nom','','R');return document.MM_returnValue">
							  <div class="label indent">
								  <label for="surename">Nom* :</label>
							  </div>
							  <input class="firstInputField errorForm" name="Nom" id="Nom" maxlength="500" type="text" />
							  <div class="clearBoth"></div>
						  </li>
						  <li>
							  <div class="label indent">
								  <label for="street">Bureau* :</label>
							  </div>
							  <input name="Bureau" type="text" class="firstInputField errorForm" id="Bureau" onblur="MM_validateForm('Bureau','','R');return document.MM_returnValue" maxlength="500" />
							  <div class="clearBoth"></div>
						  </li>
						  <li>
							  <div class="label indent">
								  <label for="newStreet">Adresse :</label>
							  </div>
							  <input class="firstInputField" name="Adresse" id="Adresse" maxlength="500" type="text" />
							  <div class="clearBoth"></div>
						  </li>
						  <li>
							  <div class="label indent">
								  <label>Pays / Code Postal / Ville :</label>
							  </div>
							  <input name="Pays" type="text" class="firstInputField country" id="Pays" value="L" maxlength="2" />
							  <input class="inputField zipcode" name="Code_Postal" id="Code_Postal" maxlength="500" type="text" />
							  <input class="inputField city" name="Ville" id="Ville" maxlength="500" type="text" />
							  <div class="clearBoth"></div>
						  </li>
						  <li>
							  <div class="label indent">
								  <label>Num&eacute;ro de t&eacute;l&eacute;phone* :</label>
							  </div>
							  <input name="prefix" type="text" class="firstInputField errorForm areaCode" id="prefix" onblur="MM_validateForm('prefix','','R');return document.MM_returnValue" maxlength="500" />
							  <input name="Tél" type="text" class="inputField errorForm directDial" id="Tél" onblur="MM_validateForm('Tél','','R');return document.MM_returnValue" maxlength="500" />
							  <div class="clearBoth"></div>
						  </li>	
						 
						  <li>
							  <div class="label indent">
								  <label for="eMail">E-mail* :</label>
							  </div>
							  <input name="email" type="text" class="firstInputField errorForm" id="email" onblur="MM_validateForm('email','','R');return document.MM_returnValue" maxlength="500" />
							  <div class="clearBoth"></div>
						  </li>
						   <li>
							  <div class="label indent mt1">
								  <label for="notice">Votre question:</label>
							  </div>
							  <textarea class="indent" name="notice" id="notice" rows="10" cols="10"></textarea>
							  <div class="clearBoth"></div>
						  </li>
						  <li class="formHeader">
							  Comment souhaitez-vous être contacté?:
						  </li>
						  <li class="indentText">
							  <input name="communication" id="telefonisch" value="telefonisch" type="radio" />
							  <label class="labelRadio" for="telefonisch">par t&eacute;l&eacute;phone </label>
							  <label class="labelRadio" for="schriftelijk"></label>
							  <input name="communication" id="eMail" value="eMail" type="radio" />
							  <label class="labelRadio" for="eMail">par e-mail</label>
                              <br />
                              <br />
					    </li>
						  
					  <li class="indentText"><span class="boldText2">
					    <input name="Envoyer" type="submit" class="box2" id="Envoyer" value="Envoyer le formulaire" />
					  </span> </li>
					  </ul>
			  </form> 
			  </div>
			
				<!-- Middle End -->
				<div id="right"><!-- Right Start -->
			<div class="whiteBox">		
			
					<div class="highlightbox">
						<div class="highlightboxHeadline">
						  <p>&nbsp;&nbsp;HDI-Gerling Assurances SA Luxembourg</p>
					  </div>
							<div class="quicklinks">
							  <div align="left"><br />
					            <table width="50%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
                                  <tr>
                                    <th scope="col"><img src="images/headers/cat.jpg" width="207" height="265" /></th>
                                  </tr>
                                </table>
					            <br />
					            <strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LIFE IS RISKY </strong><br />
				              </div>
						</div>
					</div>	
			    <ul class="contentList">
				      <li>Si&egrave;ge social et Bureau</li>
				      <h3><br />
				        <br />
				        HDI-Gerling Assurances SA Luxembourg<br />
				        2-4 Rue du Château d'Eau<br />
				        L-3364 Leudelange<br />
				        T : +352 46 36 40<br />
				        F : <span lang="de" xml:lang="de">+352 46 36 44</span></h3>
				      <h3>Nous sommes ouvert du lundi au vendredi de:</h3>
				      <h3>08h30 à 12h00 et de 13h00 à 16h30</h3>
				      <h3>Parking client disponible.</h3>
              </ul>
			    <p class="headline white style11">&nbsp;</p>
				<ul class="contentList">
					<li class="firstItem">
							<a href="mailto:info@hdi-gerling.lu">E-Mail</a>
						</li>
				</ul>
				<div class="quicklinks">
					<ul>
					</ul>
				</div>
				
				
				</div>
				<div class="clearBoth"></div> <!-- after Button always insert .clearBoth <div> -->				
				
			</div>			
											
			

				<!-- Right End -->
				<div class="clearBoth"></div>
			</div><!-- Content End -->
			<div id="footer" class="functions">
			  <p>HDI-Gerling Assurances SA Luxembourg   © 2013* HDI-Gerling <a href="Privacy-Fr.pdf">Privacy</a>
	</div><!-- Box End -->
		
	</body>
</html>


formmail.pl :

HTML:
#!/usr/bin/perl
##############################################################################
# FormMail                        Version 1.92                               #
# Copyright 1995-2002 Matt Wright mattw@scriptarchive.com                    #
# Created 06/09/95                Last Modified 04/21/02                     #
# Matt's Script Archive, Inc.:    http://www.scriptarchive.com/              #
##############################################################################
# COPYRIGHT NOTICE                                                           #
# Copyright 1995-2002 Matthew M. Wright  All Rights Reserved.                #
#                                                                            #
# FormMail may be used and modified free of charge by anyone so long as this #
# copyright notice and the comments above remain intact.  By using this      #
# code you agree to indemnify Matthew M. Wright from any liability that      #
# might arise from its use.                                                  #
#                                                                            #
# Selling the code for this program without prior written consent is         #
# expressly forbidden.  In other words, please ask first before you try and  #
# make money off of my program.                                              #
#                                                                            #
# Obtain permission before redistributing this software over the Internet or #
# in any other medium. In all cases copyright and header must remain intact. #
##############################################################################
# ACCESS CONTROL FIX: Peter D. Thompson Yezek                                #
#                     http://www.securityfocus.com/archive/1/62033           #
##############################################################################
# Define Variables                                                           #
#      Detailed Information Found In README File.                            #

# $mailprog defines the location of your sendmail program on your unix       #
# system. The flags -i and -t should be passed to sendmail in order to       #
# have it ignore single dots on a line and to read message for recipients    #

$mailprog = '/usr/sbin/sendmail -t';

# @referers allows forms to be located only on servers which are defined     #
# in this field.  This security fix from the last version which allowed      #
# anyone on any server to use your FormMail script on their web site.        #

@referers = ('hdi-gerling.lu', 'www.hdi-gerling.lu');

# @recipients defines the e-mail addresses or domain names that e-mail can   #
# be sent to.  This must be filled in correctly to prevent SPAM and allow    #
# valid addresses to receive e-mail.  Read the documentation to find out how #
# this variable works!!!  It is EXTREMELY IMPORTANT.                         #
@recipients = ('kevin@compoint.be');

# ACCESS CONTROL FIX: Peter D. Thompson Yezek                                #
# @valid_ENV allows the sysadmin to define what environment variables can    #
# be reported via the env_report directive.  This was implemented to fix     #
# the problem reported at http://www.securityfocus.com/bid/1187              #

@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_USER_AGENT');

# Done                                                                       #
##############################################################################

# Check Referring URL
&check_url;

# Retrieve Date
&get_date;

# Parse Form Contents
&parse_form;

# Check Required Fields
&check_required;

# Send E-Mail
&send_mail;

# Return HTML Page or Redirect User
&return_html;

# NOTE rev1.91: This function is no longer intended to stop abuse, that      #
#    functionality is now embedded in the checks made on @recipients and the #
#    recipient form field.                                                   #

sub check_url {

    # Localize the check_referer flag which determines if user is valid.     #
    local($check_referer) = 0;

    # If a referring URL was specified, for each valid referer, make sure    #
    # that a valid referring URL was passed to FormMail.                     #

    if ($ENV{'HTTP_REFERER'}) {
        foreach $referer (@referers) {
            if ($ENV{'HTTP_REFERER'} =~ m|https?://([^/]*)$referer|i) {
                $check_referer = 1;
                last;
            }
        }
    }
    else {
        $check_referer = 1;
    }

    # If the HTTP_REFERER was invalid, send back an error.                   #
    if ($check_referer != 1) { &error('bad_referer') }
}

sub get_date {

    # Define arrays for the day of the week and month of the year.           #
    @days   = ('Sunday','Monday','Tuesday','Wednesday',
               'Thursday','Friday','Saturday');
    @months = ('January','February','March','April','May','June','July',
               'August','September','October','November','December');

    # Get the current time and format the hour, minutes and seconds.  Add    #
    # 1900 to the year to get the full 4 digit year.                         #
    ($sec,$min,$hour,$mday,$mon,$year,$wday) = (localtime(time))[0,1,2,3,4,5,6];
    $time = sprintf("%02d:%02d:%02d",$hour,$min,$sec);
    $year += 1900;

    # Format the date.                                                       #
    $date = "$days[$wday], $months[$mon] $mday, $year at $time";

}

sub parse_form {

    # Define the configuration associative array.                            #
    %Config = ('recipient','',          'subject','',
               'email','',              'realname','',
               'redirect','',           'bgcolor','',
               'background','',         'link_color','',
               'vlink_color','',        'text_color','',
               'alink_color','',        'title','',
               'sort','',               'print_config','',
               'required','',           'env_report','',
               'return_link_title','',  'return_link_url','',
               'print_blank_fields','', 'missing_fields_redirect','');

    # Determine the form's REQUEST_METHOD (GET or POST) and split the form   #
    # fields up into their name-value pairs.  If the REQUEST_METHOD was      #
    # not GET or POST, send an error.                                        #
    if ($ENV{'REQUEST_METHOD'} eq 'GET') {
        # Split the name-value pairs
        @pairs = split(/&/, $ENV{'QUERY_STRING'});
    }
    elsif ($ENV{'REQUEST_METHOD'} eq 'POST') {
        # Get the input
        read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
 
        # Split the name-value pairs
        @pairs = split(/&/, $buffer);
    }
    else {
        &error('request_method');
    }

    # For each name-value pair:                                              #
    foreach $pair (@pairs) {

        # Split the pair up into individual variables.                       #
        local($name, $value) = split(/=/, $pair);
 
        # Decode the form encoding on the name and value variables.          #
        # v1.92: remove null bytes                                           #
        $name =~ tr/+/ /;
        $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
        $name =~ tr/\0//d;

        $value =~ tr/+/ /;
        $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
        $value =~ tr/\0//d;

        # If the field name has been specified in the %Config array, it will #
        # return a 1 for defined($Config{$name}}) and we should associate    #
        # this value with the appropriate configuration variable.  If this   #
        # is not a configuration form field, put it into the associative     #
        # array %Form, appending the value with a ', ' if there is already a #
        # value present.  We also save the order of the form fields in the   #
        # @Field_Order array so we can use this order for the generic sort.  #
        if (defined($Config{$name})) {
            $Config{$name} = $value;
        }
        else {
            if ($Form{$name} ne '') {
                $Form{$name} = "$Form{$name}, $value";
            }
            else {
                push(@Field_Order,$name);
                $Form{$name} = $value;
            }
        }
    }

    # The next six lines remove any extra spaces or new lines from the       #
    # configuration variables, which may have been caused if your editor     #
    # wraps lines after a certain length or if you used spaces between field #
    # names or environment variables.                                        #
    $Config{'required'} =~ s/(\s+|\n)?,(\s+|\n)?/,/g;
    $Config{'required'} =~ s/(\s+)?\n+(\s+)?//g;
    $Config{'env_report'} =~ s/(\s+|\n)?,(\s+|\n)?/,/g;
    $Config{'env_report'} =~ s/(\s+)?\n+(\s+)?//g;
    $Config{'print_config'} =~ s/(\s+|\n)?,(\s+|\n)?/,/g;
    $Config{'print_config'} =~ s/(\s+)?\n+(\s+)?//g;

    # Split the configuration variables into individual field names.         #
    @Required = split(/,/,$Config{'required'});
    @Env_Report = split(/,/,$Config{'env_report'});
    @Print_Config = split(/,/,$Config{'print_config'});

    # ACCESS CONTROL FIX: Only allow ENV variables in @valid_ENV in          #
    # @Env_Report for security reasons.                                      #
    foreach $env_item (@Env_Report) {
        foreach $valid_item (@valid_ENV) {
            if ( $env_item eq $valid_item ) { push(@temp_array, $env_item) }
        }
    } 
    @Env_Report = @temp_array;
}

sub check_required {

    # Localize the variables used in this subroutine.                        #
    local($require, @error);

    # The following insures that there were no newlines in any fields which  #
    # will be used in the header.                                            #
    if ($Config{'subject'} =~ /(\n|\r)/m || $Config{'email'} =~ /(\n|\r)/m ||
        $Config{'realname'} =~ /(\n|\r)/m || $Config{'recipient'} =~ /(\n|\r)/m) {
        &error('invalid_headers');
    }

    if (!$Config{'recipient'}) {
        if (!defined(%Form)) { &error('bad_referer') }
        else                 { &error('no_recipient') }
    }
    else {
        # This block of code requires that the recipient address end with    #
        # a valid domain or e-mail address as defined in @recipients.        #
        $valid_recipient = 0;
        foreach $send_to (split(/,/,$Config{'recipient'})) {
            foreach $recipient (@recipients) {
                if ($send_to =~ /$recipient$/i) {
                    push(@send_to,$send_to); last;
                }
            }
        }
        if ($#send_to < 0) { &error('no_recipient') }
        $Config{'recipient'} = join(',',@send_to);
    }

    # For each require field defined in the form:                            #
    foreach $require (@Required) {

        # If the required field is the email field, the syntax of the email  #
        # address if checked to make sure it passes a valid syntax.          #
        if ($require eq 'email' && !&check_email($Config{$require})) {
            push(@error,$require);
        }

        # Otherwise, if the required field is a configuration field and it   #
        # has no value or has been filled in with a space, send an error.    #
        elsif (defined($Config{$require})) {
            if ($Config{$require} eq '') { push(@error,$require); }
        }

        # If it is a regular form field which has not been filled in or      #
        # filled in with a space, flag it as an error field.                 #
        elsif (!defined($Form{$require}) || $Form{$require} eq '') {
            push(@error,$require);
        }
    }

    # If any error fields have been found, send error message to the user.   #
    if (@error) { &error('missing_fields', @error) }
}

sub return_html {
    # Local variables used in this subroutine initialized.                   #
    local($key,$sort_order,$sorted_field);

    # Now that we have finished using form values for any e-mail related     #
    # reasons, we will convert all of the form fields and config values      #
    # to remove any cross-site scripting security holes.                     #
    local($field);
    foreach $field (keys %Config) {
        $safeConfig{$field} = &clean_html($Config{$field});
    }

    foreach $field (keys %Form) {
        $Form{$field} = &clean_html($Form{$field});
    }


    # If redirect option is used, print the redirectional location header.   #
    if ($Config{'redirect'}) {
        print "Location: $safeConfig{'redirect'}\n\n";
    }

    # Otherwise, begin printing the response page.                           #
    else {

        # Print HTTP header and opening HTML tags.                           #
        print "Content-type: text/html\n\n";
        print "<html>\n <head>\n";

        # Print out title of page                                            #
        if ($Config{'title'}) { print "<title>$safeConfig{'title'}</title>\n" }
        else                  { print "<title>Thank You</title>\n"        }

        print " </head>\n <body";

        # Get Body Tag Attributes                                            #
        &body_attributes;

        # Close Body Tag                                                     #
        print ">\n  <center>\n";

        # Print custom or generic title.                                     #
        if ($Config{'title'}) { print "<h1>$safeConfig{'title'}</h1>\n" }
        else { print "<h1>Thank You For Filling Out This Form</h1>\n" }

        print "</center>\n";

        print "Below is what you submitted to $safeConfig{'recipient'} on ";
        print "$date<p><hr size=1 width=75\%><p>\n";

        # If a sort order is specified, sort the form fields based on that.  #
        if ($Config{'sort'} =~ /^order:.*,.*/) {

            # Set the temporary $sort_order variable to the sorting order,   #
            # remove extraneous line breaks and spaces, remove the order:    #
            # directive and split the sort fields into an array.             #
            $sort_order = $Config{'sort'};
            $sort_order =~ s/(\s+|\n)?,(\s+|\n)?/,/g;
            $sort_order =~ s/(\s+)?\n+(\s+)?//g;
            $sort_order =~ s/order://;
            @sorted_fields = split(/,/, $sort_order);

            # For each sorted field, if it has a value or the print blank    #
            # fields option is turned on print the form field and value.     #
            foreach $sorted_field (@sorted_fields) {
                local $sfname = &clean_html($sorted_field);

                if ($Config{'print_blank_fields'} || $Form{$sorted_field} ne '') {
                    print "<b>$sfname:</b> $Form{$sorted_field}<p>\n";
                }
            }
        }

        # Otherwise, use the order the fields were sent, or alphabetic.      #
        else {

            # Sort alphabetically if requested.
            if ($Config{'sort'} eq 'alphabetic') {
                @Field_Order = sort @Field_Order;
            }

            # For each form field, if it has a value or the print blank      #
            # fields option is turned on print the form field and value.     #
            foreach $field (@Field_Order) {
                local $fname = &clean_html($field);

                if ($Config{'print_blank_fields'} || $Form{$field} ne '') {
                    print "<b>$fname:</b> $Form{$field}<p>\n";
                }
            }
        }

        print "<p><hr size=1 width=75%><p>\n";

        # Check for a Return Link and print one if found.                    #
        if ($Config{'return_link_url'} && $Config{'return_link_title'}) {
            print "<ul>\n";
            print "<li><a href=\"$safeConfig{'return_link_url'}\">$safeConfig{'return_link_title'}</a>\n";
            print "</ul>\n";
        }

        # Print the page footer.                                             #
        print <<"(END HTML FOOTER)";
        <hr size=1 width=75%><p> 
        <center><font size=-1><a href="http://www.scriptarchive.com/formmail.html">FormMail</a> V1.92 &copy; 1995 - 2002  Matt Wright<br>
A Free Product of <a href="http://www.scriptarchive.com/">Matt's Script Archive, Inc.</a></font></center>
        </body>
       </html>
(END HTML FOOTER)
    }
}

sub send_mail {
    # Localize variables used in this subroutine.                            #
    local($print_config,$key,$sort_order,$sorted_field,$env_report);

    # Open The Mail Program
    open(MAIL,"|$mailprog");

    print MAIL "To: $Config{'recipient'}\n";
    print MAIL "From: $Config{'email'} ($Config{'realname'})\n";

    # Check for Message Subject
    if ($Config{'subject'}) { print MAIL "Subject: $Config{'subject'}\n\n" }
    else                    { print MAIL "Subject: WWW Form Submission\n\n" }

    print MAIL "Below is the result of your feedback form.  It was submitted by\n";
    print MAIL "$Config{'realname'} ($Config{'email'}) on $date\n";
    print MAIL "-" x 75 . "\n\n";

    if (@Print_Config) {
        foreach $print_config (@Print_Config) {
            if ($Config{$print_config}) {
                print MAIL "$print_config: $Config{$print_config}\n\n";
            }
        }
    }

    # If a sort order is specified, sort the form fields based on that.      #
    if ($Config{'sort'} =~ /^order:.*,.*/) {

        # Remove extraneous line breaks and spaces, remove the order:        #
        # directive and split the sort fields into an array.                 #
        local $sort_order = $Config{'sort'};
        $sort_order =~ s/(\s+|\n)?,(\s+|\n)?/,/g;
        $sort_order =~ s/(\s+)?\n+(\s+)?//g;
        $sort_order =~ s/order://;
        @sorted_fields = split(/,/, $sort_order);

        # For each sorted field, if it has a value or the print blank        #
        # fields option is turned on print the form field and value.         #
        foreach $sorted_field (@sorted_fields) {
            if ($Config{'print_blank_fields'} || $Form{$sorted_field} ne '') {
                print MAIL "$sorted_field: $Form{$sorted_field}\n\n";
            }
        }
    }

    # Otherwise, print fields in order they were sent or alphabetically.     #
    else {

        # Sort alphabetically if specified:                                  #
        if ($Config{'sort'} eq 'alphabetic') {
            @Field_Order = sort @Field_Order;
        }

        # For each form field, if it has a value or the print blank          #
        # fields option is turned on print the form field and value.         #
        foreach $field (@Field_Order) {
            if ($Config{'print_blank_fields'} || $Form{$field} ne '') {
                print MAIL "$field: $Form{$field}\n\n";
            }
        }
    }

    print MAIL "-" x 75 . "\n\n";

    # Send any specified Environment Variables to recipient.                 #
    foreach $env_report (@Env_Report) {
        if ($ENV{$env_report}) {
            print MAIL "$env_report: $ENV{$env_report}\n";
        }
    }

    close (MAIL);
}

sub check_email {
    # Initialize local email variable with input to subroutine.              #
    $email = $_[0];

    # If the e-mail address contains:                                        #
    if ($email =~ /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/ ||

        # the e-mail address contains an invalid syntax.  Or, if the         #
        # syntax does not match the following regular expression pattern     #
        # it fails basic syntax verification.                                #

        $email !~ /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z0-9]+)(\]?)$/) {

        # Basic syntax requires:  one or more characters before the @ sign,  #
        # followed by an optional '[', then any number of letters, numbers,  #
        # dashes or periods (valid domain/IP characters) ending in a period  #
        # and then 2 or 3 letters (for domain suffixes) or 1 to 3 numbers    #
        # (for IP addresses).  An ending bracket is also allowed as it is    #
        # valid syntax to have an email address like: user@[255.255.255.0]   #

        # Return a false value, since the e-mail address did not pass valid  #
        # syntax.                                                            #
        return 0;
    }

    else {

        # Return a true value, e-mail verification passed.                   #
        return 1;
    }
}

# This was added into v1.91 to further secure the recipients array.  Now, by #
# default it will assume that valid recipients include only users with       #
# usernames A-Z, a-z, 0-9, _ and - that match your domain exactly.  If this  #
# is not what you want, you should read more detailed instructions regarding #
# the configuration of the @recipients variable in the documentation.        #
sub fill_recipients {
    local(@domains) = @_;
    local($domain,@return_recips);

    foreach $domain (@domains) {
        if ($domain =~ /^\d+\.\d+\.\d+\.\d+$/) {
            $domain =~ s/\./\\\./g;
            push(@return_recips,'^[\w\-\.]+\@\[' . $domain . '\]');
        }
        else {
            $domain =~ s/\./\\\./g;
            $domain =~ s/\-/\\\-/g;
            push(@return_recips,'^[\w\-\.]+\@' . $domain);
        }
    }

    return @return_recips;
}

# This function will convert <, >, & and " to their HTML equivalents.        #
sub clean_html {
    local $value = $_[0];
    $value =~ s/\&/\&amp;/g;
    $value =~ s/</\&lt;/g;
    $value =~ s/>/\&gt;/g;
    $value =~ s/"/\&quot;/g;
    return $value;
}

sub body_attributes {
    # Check for Background Color
    if ($Config{'bgcolor'}) { print " bgcolor=\"$safeConfig{'bgcolor'}\"" }

    # Check for Background Image
    if ($Config{'background'}) { print " background=\"$safeConfig{'background'}\"" }

    # Check for Link Color
    if ($Config{'link_color'}) { print " link=\"$safeConfig{'link_color'}\"" }

    # Check for Visited Link Color
    if ($Config{'vlink_color'}) { print " vlink=\"$safeConfig{'vlink_color'}\"" }

    # Check for Active Link Color
    if ($Config{'alink_color'}) { print " alink=\"$safeConfig{'alink_color'}\"" }

    # Check for Body Text Color
    if ($Config{'text_color'}) { print " text=\"$safeConfig{'text_color'}\"" }
}

sub error { 
    # Localize variables and assign subroutine input.                        #
    local($error,@error_fields) = @_;
    local($host,$missing_field,$missing_field_list);

    if ($error eq 'bad_referer') {
        if ($ENV{'HTTP_REFERER'} =~ m|^https?://([\w\.]+)|i) {
            $host = $1;
            my $referer = &clean_html($ENV{'HTTP_REFERER'});
            print <<"(END ERROR HTML)";
Content-type: text/html

<html>
 <head>
  <title>Bad Referrer - Access Denied</title>
 </head>
 <body bgcolor=#FFFFFF text=#000000>
  <center>
   <table border=0 width=600 bgcolor=#9C9C9C>
    <tr><th><font size=+2>Bad Referrer - Access Denied</font></th></tr>
   </table>
   <table border=0 width=600 bgcolor=#CFCFCF>
    <tr><td>The form attempting to use
     <a href="http://www.scriptarchive.com/formmail.html">FormMail</a>
     resides at <tt>$referer</tt>, which is not allowed to access
     this cgi script.<p>

     If you are attempting to configure FormMail to run with this form, you need
     to add the following to \@referers, explained in detail in the 
     <a href="http://www.scriptarchive.com/readme/formmail.html">README</a> file.<p>

     Add <tt>'$host'</tt> to your <tt><b>\@referers</b></tt> array.<hr size=1>
     <center><font size=-1>
      <a href="http://www.scriptarchive.com/formmail.html">FormMail</a> V1.92 &copy; 1995 - 2002  Matt Wright<br>
      A Free Product of <a href="http://www.scriptarchive.com/">Matt's Script Archive, Inc.</a>
     </font></center>
    </td></tr>
   </table>
  </center>
 </body>
</html>
(END ERROR HTML)
        }
        else {
            print <<"(END ERROR HTML)";
Content-type: text/html

<html>
 <head>
  <title>FormMail v1.92</title>
 </head>
 <body bgcolor=#FFFFFF text=#000000>
  <center>
   <table border=0 width=600 bgcolor=#9C9C9C>
    <tr><th><font size=+2>FormMail</font></th></tr>
   </table>
   <table border=0 width=600 bgcolor=#CFCFCF>
    <tr><th><tt><font size=+1>Copyright 1995 - 2002 Matt Wright<br>
        Version 1.92 - Released April 21, 2002<br>
        A Free Product of <a href="http://www.scriptarchive.com/">Matt's Script Archive,
        Inc.</a></font></tt></th></tr>
   </table>
  </center>
 </body>
</html>
(END ERROR HTML)
        }
    }

    elsif ($error eq 'request_method') {
            print <<"(END ERROR HTML)";
Content-type: text/html

<html>
 <head>
  <title>Error: Request Method</title>
 </head>
 <body bgcolor=#FFFFFF text=#000000>
  <center>
   <table border=0 width=600 bgcolor=#9C9C9C>
    <tr><th><font size=+2>Error: Request Method</font></th></tr>
   </table>
   <table border=0 width=600 bgcolor=#CFCFCF>
    <tr><td>The Request Method of the Form you submitted did not match
     either <tt>GET</tt> or <tt>POST</tt>.  Please check the form and make sure the
     <tt>method=</tt> statement is in upper case and matches <tt>GET</tt> or <tt>POST</tt>.<p>

     <center><font size=-1>
      <a href="http://www.scriptarchive.com/formmail.html">FormMail</a> V1.92 &copy; 1995 - 2002  Matt Wright<br>
      A Free Product of <a href="http://www.scriptarchive.com/">Matt's Script Archive, Inc.</a>
     </font></center>
    </td></tr>
   </table>
  </center>
 </body>
</html>
(END ERROR HTML)
    }

    elsif ($error eq 'no_recipient') {
            print <<"(END ERROR HTML)";
Content-type: text/html

<html>
 <head>
  <title>Error: Bad/No Recipient</title>
 </head>
 <body bgcolor=#FFFFFF text=#000000>
  <center>
   <table border=0 width=600 bgcolor=#9C9C9C>
    <tr><th><font size=+2>Error: Bad/No Recipient</font></th></tr>
   </table>
   <table border=0 width=600 bgcolor=#CFCFCF>
    <tr><td>There was no recipient or an invalid recipient specified in the data sent to FormMail.  Please
     make sure you have filled in the <tt>recipient</tt> form field with an e-mail
     address that has been configured in <tt>\@recipients</tt>.  More information on filling in <tt>recipient</tt> form fields and variables can be
     found in the <a href="http://www.scriptarchive.com/readme/formmail.html">README</a> file.<hr size=1>

     <center><font size=-1>
      <a href="http://www.scriptarchive.com/formmail.html">FormMail</a> V1.92 &copy; 1995 - 2002  Matt Wright<br>
      A Free Product of <a href="http://www.scriptarchive.com/">Matt's Script Archive, Inc.</a>
     </font></center>
    </td></tr>
   </table>
  </center>
 </body>
</html>
(END ERROR HTML)
    }

    elsif ($error eq 'invalid_headers') {
            print <<"(END ERROR HTML)";
Content-type: text/html

<html>
 <head>
  <title>Error: Bad Header Fields</title>
 </head>
 <body bgcolor=#FFFFFF text=#000000>
  <center>
   <table border=0 width=600 bgcolor=#9C9C9C>
    <tr><th><font size=+2>Error: Bad Header Fields</font></th></tr>
   </table>
   <table border=0 width=600 bgcolor=#CFCFCF>
    <tr><td>The header fields, which include <tt>recipient</tt>, <tt>email</tt>, <tt>realname</tt> and <tt>subject</tt> were
     filled in with invalid values. You may not include any newline characters in these parameters.
     More information on filling in these form fields and variables can be
     found in the <a href="http://www.scriptarchive.com/readme/formmail.html">README</a> file.<hr size=1>

     <center><font size=-1>
      <a href="http://www.scriptarchive.com/formmail.html">FormMail</a> V1.92 &copy; 1995 - 2002  Matt Wright<br>
      A Free Product of <a href="http://www.scriptarchive.com/">Matt's Script Archive, Inc.</a>
     </font></center>
    </td></tr>
   </table>
  </center>
 </body>
</html>
(END ERROR HTML)
    }

    elsif ($error eq 'missing_fields') {
        if ($Config{'missing_fields_redirect'}) {
            print "Location: " . &clean_html($Config{'missing_fields_redirect'}) . "\n\n";
        }
        else {
            foreach $missing_field (@error_fields) {
                $missing_field_list .= "<li>" . &clean_html($missing_field) . "\n";
            }

            print <<"(END ERROR HTML)";
Content-type: text/html

<html>
 <head>
  <title>Error: Blank Fields</title>
 </head>
  <center>
   <table border=0 width=600 bgcolor=#9C9C9C>
    <tr><th><font size=+2>Error: Blank Fields</font></th></tr>
   </table>
   <table border=0 width=600 bgcolor=#CFCFCF>
    <tr><td>The following fields were left blank in your submission form:<p>
     <ul>
$missing_field_list
     </ul><br>

     These fields must be filled in before you can successfully submit the form.<p>
     Please use your browser's back button to return to the form and try again.<hr size=1>
     <center><font size=-1>
      <a href="http://www.scriptarchive.com/formmail.html">FormMail</a> V1.92 &copy; 1995 - 2002  Matt Wright<br>
      A Free Product of <a href="http://www.scriptarchive.com/">Matt's Script Archive, Inc.</a>
     </font></center>
    </td></tr>
   </table>
  </center>
 </body>
</html>
(END ERROR HTML)
        }
    }

    exit;
}

(hierbij had ik even geprobeerd om
Code:
$mailprog = '/usr/sbin/sendmail -t';
te veranderen in
Code:
$mailprog = '/mailer/mailer.php';
, weet niet of dit nodig is / compleet verkeerd was :D

BTW: heb nu die bestanden van github gedownload en in de public_html gezet in de map genaamd mailer.

Thx :)
 
Laatst bewerkt:
Je zult de code nog iets moeten tweaken, en ik ga er straks nog even mee verder, maar in principe zou zoiets moeten werken. Je hebt nog maar één bestand nodig zo.
Kom je ergens niet uit of snap je iets niet dan hoor ik het graag :thumb:

PHP:
<!DOCTYPE HTML> 
<html>
<head>
<style>
.error {color: #FF0000;}
</style>
</head>
<body>

<?php

// maak variabelen aan en maak ze leeg
$voornaamErr = $telefoonErr = $emailErr = $achternaamErr = $bureauErr = "";
$voornaam = $land = $postcode = $dorp = $telefoon = $email = $achternaam = $adres = $bureau = $contactmanier = $bericht = "";

if ($_SERVER["REQUEST_METHOD"] == "POST") {
   if (empty($_POST["voornaam"])) {
     $voornaamErr = "Een voornaam is verplicht";
   } else {
     $voornaam = test_input($_POST["voornaam"]);
     // kijk of veld alleen letters en spaties bevat.
     if (!preg_match("/^[a-zA-Z ]*$/",$voornaam)) {
       $voornaamErr = "Alleen letters en spaties zijn toegestaan"; 
     }
   }
   
   if (empty($_POST["achternaam"])) {
     $achternaamErr = "Een achternaam is verplicht";
   } else {
     $achternaam = test_input($_POST["achternaam"]);
     // kijk of veld alleen letters en spaties bevat.
     if (!preg_match("/^[a-zA-Z ]*$/",$achternaam)) {
       $achternaamErr = "Alleen letters en spaties zijn toegestaan"; 
     }
   }
   
    if (empty($_POST["email"])) {
     $emailErr = "Email is verplicht";
   } else {
     $email = test_input($_POST["email"]);
     // check if e-mail address is well-formed
     if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
       $emailErr = "Geen geldig Email-adres."; 
     }
   }
     
//Handel de rest van de velden af

   if (empty($_POST["land"])) {
     $land = "";
   } else {
     $land = test_input($_POST["land"]);
   }
   
   if (empty($_POST["postcode"])) {
     $postcode = "";
   } else {
     $postcode = test_input($_POST["postcode"]);
   }

   if (empty($_POST["dorp"])) {
     $dorp = "";
   } else {
     $dorp = test_input($_POST["dorp"]);
   }

   if (empty($_POST["telefoon"])) {
     $telefoonErr = "Telefoon is verplicht";
   } else {
     $telefoon = test_input($_POST["telefoon"]);
	 if (!preg_match("/^[0-9]{1,}$/",$telefoon)) {
       $telefoonErr = "Alleen cijfers zijn toegestaan"; 
     }
   }
   
   if (empty($_POST["adres"])) {
     $adres = "";
   } else {
     $adres = test_input($_POST["adres"]);
   }
   
   if (empty($_POST["bureau"])) {
     $bureauErr = "Bureau is verplicht";
   } else {
     $bureau = test_input($_POST["bureau"]);
	 }
   
   if (empty($_POST["bericht"])) {
     $bericht = "";
   } else {
     $bericht = test_input($_POST["bericht"]);
	 $bericht = nl2br($bericht);
   }
   
   if (empty($_POST["contactmanier"])) {
     $contactmanier = "";
   } else {
     $contactmanier = test_input($_POST["contactmanier"]);
   }
   
}

function test_input($data) {
   $data = trim($data);
   $data = stripslashes($data);
   $data = htmlspecialchars($data);
   return $data;
}
?>

<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> 
   Voornaam: <input type="text" name="voornaam" value="<?php echo $voornaam;?>">
   <span class="error">* <?php echo $voornaamErr;?></span>
   <br><br>
   
   Achternaam: <input type="text" name="achternaam" value="<?php echo $achternaam;?>">
   <span class="error">* <?php echo $achternaamErr;?></span>
   <br><br>
   
   Bureau: <input type="text" name="bureau" value="<?php echo $bureau;?>">
   <span class="error">* <?php echo $bureauErr;?></span>
   <br><br>
   
   Adres: <input type="text" name="adres" value="<?php echo $adres;?>">
   <br><br>
   
   Land: <input type="text" name="land" value="<?php echo $land;?>">
   <br><br>
   
   Postcode: <input type="text" name="postcode" value="<?php echo $postcode;?>">
   <br><br>
   
   Dorp: <input type="text" name="Dorp" value="<?php echo $dorp;?>">
   <br><br>
   
   Telefoonnummer: <input type="text" name="telefoon" value="<?php echo $telefoon;?>">
   <span class="error">* <?php echo $telefoonErr;?></span>
   <br><br>
   
   E-mail: <input type="text" name="email" value="<?php echo $email;?>">
   <span class="error">* <?php echo $emailErr;?></span>
   <br><br>
   
   Bericht: <textarea name="bericht" rows="5" cols="40"><?php echo $bericht;?></textarea>
   <br><br>
   
   Manier van contact:
   <input type="radio" name="contactmanier" value="telefoon">Via telefoon
   <input type="radio" name="contactmanier" value="email">Via email
   <br><br>
   <input type="submit" name="submit" value="Verzend het formulier"> 

   </body>
   </html>

<?php

if ($_SERVER["REQUEST_METHOD"] == "POST") {
   if (!empty($_POST["voornaam"])) {
	   
$message = '<html><body>';
$message .= 'Voornaam: ' . $voornaam . '<br />';
$message .= 'Achternaam: ' . $achternaam . '<br />';
$message .= 'Bureau: ' . $bureau . '<br />';
$message .= 'Adres: ' . $adres . '<br />';
$message .= 'Land: ' . $land . '<br />';
$message .= 'Postcode: ' . $postcode . '<br />';
$message .= 'Dorp: ' . $dorp . '<br />';
$message .= 'Telefoonnummer: ' . $telefoon . '<br />';
$message .= 'Email: ' . $email . '<br />';
$message .= 'Bericht: ' . $bericht . '<br />';
$message .= 'Manier van contact: ' . $contactmanier . '<br />';


$from = 'mailer@hdi-gerling.be';
$headers = "From: " . strip_tags($from) . "\r\n";
$headers .= "Reply-To: ". strip_tags($email) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

require 'PHPMailerAutoload.php';
 
$mail = new PHPMailer;
 
$mail->isSMTP();                                      // SMTP aanzetten
$mail->Host = 'HOST';  // Stel hier je SMTP server in (te vinden via directadmin)
$mail->SMTPAuth = true;                               // SMTP authenticatie instellen
$mail->Username = 'user';                 // SMTP gebruikersnaam
$mail->Password = 'wachtwoord';                           // SMTP wachtwoord
$mail->Port = 587;                                    // De SMTP poort om mee te verbinden (meestal is 587 goed, ook te vinden via directadmin)
 
$mail->From = $from;                       //Van welk email adres moet de mail verzonden worden? (Hoeft niet echt te bestaan)
$mail->FromName = 'HDI-Gerling Contact form';                                //Welke naam moet de afzender krijgen?
$mail->addAddress('kevin@compoint.be');     // Ontvanger toevoegen, naam mag eventueel weg.
 
$mail->isHTML(true);                                  // Eventueel mailopmaak naar html zetten.
 
$mail->Subject = 'Contactformulier';                   //Onderwerp van de mail
$mail->Body    = $message; 								//Inhoud van de mail
 
if(!$mail->send()) {
    echo 'Bericht kon niet verzonden worden';
    echo 'Mail Error: ' . $mail->ErrorInfo;
} else {
    echo 'Bericht is verzonden!';
}

}}
?>
 
Je zult de code nog iets moeten tweaken, en ik ga er straks nog even mee verder, maar in principe zou zoiets moeten werken. Je hebt nog maar één bestand nodig zo.
Kom je ergens niet uit of snap je iets niet dan hoor ik het graag :thumb:

wat voel ik mij een noob nu..
ik heb even jouw laatste code opgeslaan als .php documentje, geupload naar de ftp, wanneer ik naar die pagina ga, en het wil versturen gebeurd er helemaal niks.
Zou eventueel de mogelijkheid bestaan om jouw codes in mijn code te integreren :eek: ?


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" xml:lang="en" lang="en">

	<head>

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	

		<title>HDI Gerling Assurances SA</title>

	

		<link href="css/hdi_gerling.css" rel="stylesheet" type="text/css" media="all" />

		<link href="css/hdi_gerling_print.css" rel="stylesheet" type="text/css" media="print" />

	

		<!--[if IE 6]>

			<link href="css/hdi_gerling_ie6.css" rel="stylesheet" type="text/css" media="all" />

		<![endif]-->

	

		<!--[if IE 7]>

			<link href="css/hdi_gerling_ie7.css" rel="stylesheet" type="text/css" media="all" />

		<![endif]-->

	

	    <style type="text/css">

<!--

a:link {

	text-decoration: none;

	color: #009E31;

}

a:visited {

	text-decoration: none;

	color: #009E31;

}

a:hover {

	text-decoration: underline;

}

a:active {

	text-decoration: none;

}

.style6 {font-size: 12px}

.style10 {font-size: 16px}

.style11 {color: #999999}

-->

        </style>

	    <script language="JavaScript" type="text/JavaScript">

<!--

function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}



function MM_validateForm() { //v4.0

  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;

  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);

    if (val) { nm=val.name; if ((val=val.value)!="") {

      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');

        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';

      } else if (test!='R') { num = parseFloat(val);

        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';

        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');

          min=test.substring(8,p); max=test.substring(p+1);

          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';

    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }

  } if (errors) alert('The following error(s) occurred:\n'+errors);

  document.MM_returnValue = (errors == '');

}

//-->

        </script>

	</head>

	

	<body>

		<div id="box"><!-- Box Start -->

			

		  <div id="header"><!-- Header Start -->

				<div id="banner"><img src="images/headers/plaza.jpg" alt="Banner Dummy" width="976" height="176" /></div>

				<div id="meta"><!-- Meta Start -->

					<div class="targetLocation colorBackground">

						

						<a href="indexhomefr.htm" class="targetLocationRight"><img src="gfx/home_icon.gif" alt="Home" height="8" border="0" class="homeIcon" /></a>

					</div>

					<div class="metaNav"><!-- Meta Start -->

					

                      <span class="style6">&zwnj;</span></div>

				</div><!-- Meta End -->

				<div id="logo"><a href="#"><img src="gfx/hdi_gerling_logo.gif" alt="HDI Gerling" /></a></div>

				<div id="claim"><img src="gfx/great_risks_deserve.gif" alt="Wij denken vooruit." width="480" height="120" /></div>

		  </div><!-- Header End -->

			

			<div id="topNav"><!-- Top Navigation Start -->

				<ul>

					<li class="topNavItem"><a href="indexhomefr.htm">Home</a></li>

                    <li class="topNavItem"><a href="verzekeringstakkenfr.htm">Assurer </a></li>

                    <li class="topNavItem"><a href="hdigerlingfr.htm">A propos de nous </a></li>

					<li class="topNavItem"><a href="informations.htm">Informations</a></li>

					<li class="topNavItem"><a href="jobsfr.htm">Jobs@</a></li>

					<li class="topNavItem"><a href="formcontactfr.htm">Contact</a></li>

					<li class="topNavItem"><a href="presse.html">Presse</a></li>

                    <li class="topNavItem"><a href="download.htm">Download</a></li>

				</ul>

			</div><!-- Top Navigation End -->

			

			<div id="content"><!-- Content Start -->

				<div id="left"><!-- Left Start -->

				

				<div id="searchForm"><!-- Search Form Start -->



				  </div><!-- Search Form End -->

				</div><!-- Left End -->

			  <div id="middle"><!-- Middle Start -->

					<h1 class="firstItem style10">Contact<br />

			  </h1>

					<form action="http://hdi-gerling.lu/cgi-bin/formmail.pl" method="post" name="contact" class="form" id="contact" onsubmit="MM_validateForm('voornaam','','R','Nom','','R','Bureau','','R','prefix','','R','Tél','','R','email','','R');return document.MM_returnValue">

					  <input type="hidden" name="recipient" value="kevin@compoint.be">

         			  <input type="hidden" name="subject" value="Formulaire de Contact">

          			  <input type="hidden" name="redirect" value="http://hdi-gerling.lu/thanksfr.htm">

					  <ul id="formList">

					    <li class="formHeader">FORMULAIRE DE CONTACT   - Vos données

						  </li>

						  <li>

							  <div class="label indent">

								  <label for="forename">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* Champs obligatoires</label>

							  </div>

						  </li>

						  <li>

							    <div class="label indent">

							      <label for="forename">Pr&eacute;nom* :</label>

					        </div>

						      <input name="Prénom" type="text" class="firstInputField errorForm" id="voornaam" onblur="MM_validateForm('voornaam','','R');return document.MM_returnValue" maxlength="500" />

						      <div class="clearBoth"></div>

					    </li>

						  <li onfocus="MM_validateForm('Nom','','R');return document.MM_returnValue">

							  <div class="label indent">

								  <label for="surename">Nom* :</label>

							  </div>

							  <input class="firstInputField errorForm" name="Nom" id="Nom" maxlength="500" type="text" />

							  <div class="clearBoth"></div>

						  </li>

						  <li>

							  <div class="label indent">

								  <label for="street">Bureau* :</label>

							  </div>

							  <input name="Bureau" type="text" class="firstInputField errorForm" id="Bureau" onblur="MM_validateForm('Bureau','','R');return document.MM_returnValue" maxlength="500" />

							  <div class="clearBoth"></div>

						  </li>

						  <li>

							  <div class="label indent">

								  <label for="newStreet">Adresse :</label>

							  </div>

							  <input class="firstInputField" name="Adresse" id="Adresse" maxlength="500" type="text" />

							  <div class="clearBoth"></div>

						  </li>

						  <li>

							  <div class="label indent">

								  <label>Pays / Code Postal / Ville :</label>

							  </div>

							  <input name="Pays" type="text" class="firstInputField country" id="Pays" value="L" maxlength="2" />

							  <input class="inputField zipcode" name="Code_Postal" id="Code_Postal" maxlength="500" type="text" />

							  <input class="inputField city" name="Ville" id="Ville" maxlength="500" type="text" />

							  <div class="clearBoth"></div>

						  </li>

						  <li>

							  <div class="label indent">

								  <label>Num&eacute;ro de t&eacute;l&eacute;phone* :</label>

							  </div>

							  <input name="prefix" type="text" class="firstInputField errorForm areaCode" id="prefix" onblur="MM_validateForm('prefix','','R');return document.MM_returnValue" maxlength="500" />

							  <input name="Tél" type="text" class="inputField errorForm directDial" id="Tél" onblur="MM_validateForm('Tél','','R');return document.MM_returnValue" maxlength="500" />

							  <div class="clearBoth"></div>

						  </li>	

						 

						  <li>

							  <div class="label indent">

								  <label for="eMail">E-mail* :</label>

							  </div>

							  <input name="email" type="text" class="firstInputField errorForm" id="email" onblur="MM_validateForm('email','','R');return document.MM_returnValue" maxlength="500" />

							  <div class="clearBoth"></div>

						  </li>

						   <li>

							  <div class="label indent mt1">

								  <label for="notice">Votre question:</label>

							  </div>

							  <textarea class="indent" name="notice" id="notice" rows="10" cols="10"></textarea>

							  <div class="clearBoth"></div>

						  </li>

						  <li class="formHeader">

							  Comment souhaitez-vous être contacté?:

						  </li>

						  <li class="indentText">

							  <input name="communication" id="telefonisch" value="telefonisch" type="radio" />

							  <label class="labelRadio" for="telefonisch">par t&eacute;l&eacute;phone </label>

							  <label class="labelRadio" for="schriftelijk"></label>

							  <input name="communication" id="eMail" value="eMail" type="radio" />

							  <label class="labelRadio" for="eMail">par e-mail</label>

                              <br />

                              <br />

					    </li>

						  

					  <li class="indentText"><span class="boldText2">

					    <input name="Envoyer" type="submit" class="box2" id="Envoyer" value="Envoyer le formulaire" />

					  </span> </li>

					  </ul>

			  </form> 

			  </div>

			

				<!-- Middle End -->

				<div id="right"><!-- Right Start -->

			<div class="whiteBox">		

			

					<div class="highlightbox">

						<div class="highlightboxHeadline">

						  <p>&nbsp;&nbsp;HDI-Gerling Assurances SA Luxembourg</p>

					  </div>

							<div class="quicklinks">

							  <div align="left"><br />

					            <table width="50%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">

                                  <tr>

                                    <th scope="col"><img src="images/headers/cat.jpg" width="207" height="265" /></th>

                                  </tr>

                                </table>

					            <br />

					            <strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LIFE IS RISKY </strong><br />

				              </div>

						</div>

					</div>	

			    <ul class="contentList">

				      <li>Si&egrave;ge social et Bureau</li>

				      <h3><br />

				        <br />

				        HDI-Gerling Assurances SA Luxembourg<br />

				        2-4 Rue du Château d'Eau<br />

				        L-3364 Leudelange<br />

				        T : +352 46 36 40<br />

				        F : <span lang="de" xml:lang="de">+352 46 36 44</span></h3>

				      <h3>Nous sommes ouvert du lundi au vendredi de:</h3>

				      <h3>08h30 à 12h00 et de 13h00 à 16h30</h3>

				      <h3>Parking client disponible.</h3>

              </ul>

			    <p class="headline white style11">&nbsp;</p>

				<ul class="contentList">

					<li class="firstItem">

							<a href="mailto:info@hdi-gerling.lu">E-Mail</a>

						</li>

				</ul>

				<div class="quicklinks">

					<ul>

					</ul>

				</div>

				

				

				</div>

				<div class="clearBoth"></div> <!-- after Button always insert .clearBoth <div> -->				

				

			</div>			

											

			



				<!-- Right End -->

				<div class="clearBoth"></div>

			</div><!-- Content End -->

			<div id="footer" class="functions">

			  <p>HDI-Gerling Assurances SA Luxembourg   © 2013* HDI-Gerling <a href="Privacy-Fr.pdf">Privacy</a>

	</div><!-- Box End -->

		

	</body>

</html>

wat voel ik mij een lastpak :p
 
heb daarnet zelf even geprobeerd om jouw code in mijn bestaande contactpagina te zetten, met volgend resultaat:

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" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
		<title>HDI Gerling Assurances SA</title>
	
		<link href="css/hdi_gerling.css" rel="stylesheet" type="text/css" media="all" />
		<link href="css/hdi_gerling_print.css" rel="stylesheet" type="text/css" media="print" />
	
		<!--[if IE 6]>
			<link href="css/hdi_gerling_ie6.css" rel="stylesheet" type="text/css" media="all" />
		<![endif]-->
	
		<!--[if IE 7]>
			<link href="css/hdi_gerling_ie7.css" rel="stylesheet" type="text/css" media="all" />
		<![endif]-->
	
	    <style type="text/css">
<!--
a:link {
	text-decoration: none;
	color: #009E31;
}
a:visited {
	text-decoration: none;
	color: #009E31;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
.style6 {font-size: 12px}
.style10 {font-size: 16px}
.style11 {color: #999999}
-->
<?php
 
// maak variabelen aan en maak ze leeg
$voornaamErr = $telefoonErr = $emailErr = $achternaamErr = $bureauErr = "";
$voornaam = $land = $postcode = $dorp = $telefoon = $email = $achternaam = $adres = $bureau = $contactmanier = $bericht = "";
 
if ($_SERVER["REQUEST_METHOD"] == "POST") {
   if (empty($_POST["voornaam"])) {
     $voornaamErr = "Een voornaam is verplicht";
   } else {
     $voornaam = test_input($_POST["voornaam"]);
     // kijk of veld alleen letters en spaties bevat.
     if (!preg_match("/^[a-zA-Z ]*$/",$voornaam)) {
       $voornaamErr = "Alleen letters en spaties zijn toegestaan"; 
     }
   }
   
   if (empty($_POST["achternaam"])) {
     $achternaamErr = "Een achternaam is verplicht";
   } else {
     $achternaam = test_input($_POST["achternaam"]);
     // kijk of veld alleen letters en spaties bevat.
     if (!preg_match("/^[a-zA-Z ]*$/",$achternaam)) {
       $achternaamErr = "Alleen letters en spaties zijn toegestaan"; 
     }
   }
   
    if (empty($_POST["email"])) {
     $emailErr = "Email is verplicht";
   } else {
     $email = test_input($_POST["email"]);
     // check if e-mail address is well-formed
     if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
       $emailErr = "Geen geldig Email-adres."; 
     }
   }
     
//Handel de rest van de velden af
 
   if (empty($_POST["land"])) {
     $land = "";
   } else {
     $land = test_input($_POST["land"]);
   }
   
   if (empty($_POST["postcode"])) {
     $postcode = "";
   } else {
     $postcode = test_input($_POST["postcode"]);
   }
 
   if (empty($_POST["dorp"])) {
     $dorp = "";
   } else {
     $dorp = test_input($_POST["dorp"]);
   }
 
   if (empty($_POST["telefoon"])) {
     $telefoonErr = "Telefoon is verplicht";
   } else {
     $telefoon = test_input($_POST["telefoon"]);
     if (!preg_match("/^[0-9]{1,}$/",$telefoon)) {
       $telefoonErr = "Alleen cijfers zijn toegestaan"; 
     }
   }
   
   if (empty($_POST["adres"])) {
     $adres = "";
   } else {
     $adres = test_input($_POST["adres"]);
   }
   
   if (empty($_POST["bureau"])) {
     $bureauErr = "Bureau is verplicht";
   } else {
     $bureau = test_input($_POST["bureau"]);
     }
   
   if (empty($_POST["bericht"])) {
     $bericht = "";
   } else {
     $bericht = test_input($_POST["bericht"]);
     $bericht = nl2br($bericht);
   }
   
   if (empty($_POST["contactmanier"])) {
     $contactmanier = "";
   } else {
     $contactmanier = test_input($_POST["contactmanier"]);
   }
   
}
 
function test_input($data) {
   $data = trim($data);
   $data = stripslashes($data);
   $data = htmlspecialchars($data);
   return $data;
}
?>
	</head>
	
	<body>
		<div id="box"><!-- Box Start -->
			
		  <div id="header"><!-- Header Start -->
				<div id="banner"><img src="images/headers/plaza.jpg" alt="Banner Dummy" width="976" height="176" /></div>
				<div id="meta"><!-- Meta Start -->
					<div class="targetLocation colorBackground">
						
						<a href="indexhomefr.htm" class="targetLocationRight"><img src="gfx/home_icon.gif" alt="Home" height="8" border="0" class="homeIcon" /></a>
					</div>
					<div class="metaNav"><!-- Meta Start -->
					
                      <span class="style6">&zwnj;</span></div>
				</div><!-- Meta End -->
				<div id="logo"><a href="#"><img src="gfx/hdi_gerling_logo.gif" alt="HDI Gerling" /></a></div>
				<div id="claim"><img src="gfx/great_risks_deserve.gif" alt="Wij denken vooruit." width="480" height="120" /></div>
		  </div><!-- Header End -->
			
			<div id="topNav"><!-- Top Navigation Start -->
				<ul>
					<li class="topNavItem"><a href="indexhomefr.htm">Home</a></li>
                    <li class="topNavItem"><a href="verzekeringstakkenfr.htm">Assurer </a></li>
                    <li class="topNavItem"><a href="hdigerlingfr.htm">A propos de nous </a></li>
					<li class="topNavItem"><a href="informations.htm">Informations</a></li>
					<li class="topNavItem"><a href="jobsfr.htm">Jobs@</a></li>
					<li class="topNavItem"><a href="formcontactfr.htm">Contact</a></li>
					<li class="topNavItem"><a href="presse.html">Presse</a></li>
                    <li class="topNavItem"><a href="download.htm">Download</a></li>
				</ul>
			</div><!-- Top Navigation End -->
			
			<div id="content"><!-- Content Start -->
				<div id="left"><!-- Left Start -->
				
				<div id="searchForm"><!-- Search Form Start -->

				  </div><!-- Search Form End -->
				</div><!-- Left End -->
			  <div id="middle"><!-- Middle Start -->
					<h1 class="firstItem style10">Contact<br />
			  </h1>
					<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> 
   Voornaam: <input type="text" name="voornaam" value="<?php echo $voornaam;?>">
   <span class="error">* <?php echo $voornaamErr;?></span>
   <br><br>
   
   Achternaam: <input type="text" name="achternaam" value="<?php echo $achternaam;?>">
   <span class="error">* <?php echo $achternaamErr;?></span>
   <br><br>
   
   Bureau: <input type="text" name="bureau" value="<?php echo $bureau;?>">
   <span class="error">* <?php echo $bureauErr;?></span>
   <br><br>
   
   Adres: <input type="text" name="adres" value="<?php echo $adres;?>">
   <br><br>
   
   Land: <input type="text" name="land" value="<?php echo $land;?>">
   <br><br>
   
   Postcode: <input type="text" name="postcode" value="<?php echo $postcode;?>">
   <br><br>
   
   Dorp: <input type="text" name="Dorp" value="<?php echo $dorp;?>">
   <br><br>
   
   Telefoonnummer: <input type="text" name="telefoon" value="<?php echo $telefoon;?>">
   <span class="error">* <?php echo $telefoonErr;?></span>
   <br><br>
   
   E-mail: <input type="text" name="email" value="<?php echo $email;?>">
   <span class="error">* <?php echo $emailErr;?></span>
   <br><br>
   
   Bericht: <textarea name="bericht" rows="5" cols="40"><?php echo $bericht;?></textarea>
   <br><br>
   
   Manier van contact:
   <input type="radio" name="contactmanier" value="telefoon">Via telefoon
   <input type="radio" name="contactmanier" value="email">Via email
   <br><br>
   <input type="submit" name="submit" value="Verzend het formulier"> 
 
   </body>
   </html>
 
<?php
 
if ($_SERVER["REQUEST_METHOD"] == "POST") {
   if (!empty($_POST["voornaam"])) {
       
$message = '<html><body>';
$message .= 'Voornaam: ' . $voornaam . '<br />';
$message .= 'Achternaam: ' . $achternaam . '<br />';
$message .= 'Bureau: ' . $bureau . '<br />';
$message .= 'Adres: ' . $adres . '<br />';
$message .= 'Land: ' . $land . '<br />';
$message .= 'Postcode: ' . $postcode . '<br />';
$message .= 'Dorp: ' . $dorp . '<br />';
$message .= 'Telefoonnummer: ' . $telefoon . '<br />';
$message .= 'Email: ' . $email . '<br />';
$message .= 'Bericht: ' . $bericht . '<br />';
$message .= 'Manier van contact: ' . $contactmanier . '<br />';
 
 
$from = 'mailer@hdi-gerling.be';
$headers = "From: " . strip_tags($from) . "\r\n";
$headers .= "Reply-To: ". strip_tags($email) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
 
require 'PHPMailerAutoload.php';
 
$mail = new PHPMailer;
 
$mail->isSMTP();                                      // SMTP aanzetten
$mail->Host = 'HOST';  // Stel hier je SMTP server in (te vinden via directadmin)
$mail->SMTPAuth = true;                               // SMTP authenticatie instellen
$mail->Username = 'user';                 // SMTP gebruikersnaam
$mail->Password = 'wachtwoord';                           // SMTP wachtwoord
$mail->Port = 587;                                    // De SMTP poort om mee te verbinden (meestal is 587 goed, ook te vinden via directadmin)
 
$mail->From = $from;                       //Van welk email adres moet de mail verzonden worden? (Hoeft niet echt te bestaan)
$mail->FromName = 'HDI-Gerling Contact form';                                //Welke naam moet de afzender krijgen?
$mail->addAddress('kevin@compoint.be');     // Ontvanger toevoegen, naam mag eventueel weg.
 
$mail->isHTML(true);                                  // Eventueel mailopmaak naar html zetten.
 
$mail->Subject = 'Contactformulier';                   //Onderwerp van de mail
$mail->Body    = $message;                              //Inhoud van de mail
 
if(!$mail->send()) {
    echo 'Bericht kon niet verzonden worden';
    echo 'Mail Error: ' . $mail->ErrorInfo;
} else {
    echo 'Bericht is verzonden!';
}
 
}}
?>
			  </div>
			
				<!-- Middle End -->
				<div id="right"><!-- Right Start -->
			<div class="whiteBox">		
			
					<div class="highlightbox">
						<div class="highlightboxHeadline">
						  <p>&nbsp;&nbsp;HDI-Gerling Assurances SA Luxembourg</p>
					  </div>
							<div class="quicklinks">
							  <div align="left"><br />
					            <table width="50%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
                                  <tr>
                                    <th scope="col"><img src="images/headers/cat.jpg" width="207" height="265" /></th>
                                  </tr>
                                </table>
					            <br />
					            <strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LIFE IS RISKY </strong><br />
				              </div>
						</div>
					</div>	
			    <ul class="contentList">
				      <li>Si&egrave;ge social et Bureau</li>
				      <h3><br />
				        <br />
				        HDI-Gerling Assurances SA Luxembourg<br />
				        2-4 Rue du Château d'Eau<br />
				        L-3364 Leudelange<br />
				        T : +352 46 36 40<br />
				        F : <span lang="de" xml:lang="de">+352 46 36 44</span></h3>
				      <h3>Nous sommes ouvert du lundi au vendredi de:</h3>
				      <h3>08h30 à 12h00 et de 13h00 à 16h30</h3>
				      <h3>Parking client disponible.</h3>
              </ul>
			    <p class="headline white style11">&nbsp;</p>
				<ul class="contentList">
					<li class="firstItem">
							<a href="mailto:info@hdi-gerling.lu">E-Mail</a>
						</li>
				</ul>
				<div class="quicklinks">
					<ul>
					</ul>
				</div>
				
				
				</div>
				<div class="clearBoth"></div> <!-- after Button always insert .clearBoth <div> -->				
				
			</div>			
											
			

				<!-- Right End -->
				<div class="clearBoth"></div>
			</div><!-- Content End -->
			<div id="footer" class="functions">
			  <p>HDI-Gerling Assurances SA Luxembourg   © 2013* HDI-Gerling <a href="Privacy-Fr.pdf">Privacy</a>
	</div><!-- Box End -->
		
	</body>
</html>

wanneer ik nu naar die pagina ga krijg ik gewoon een blanco scherm zonder inhoud :eek:
 
Dat klopt, mijn code sluit namelijk ook al de HTML pagina af, terwijl je er nu nog code onder zet, dat snapt hij dan niet meer.
Ik zie nu ook dat er geen mails verzonden worden.....

Je zou het kunnen integreren, echter snap ik niet hoe jouw huidige script de mails verstuurd, wanneer deze toegang nodig heeft tot de sendmail programmatuur is het programma een hele eigen library voor de mail.

Aangezien er bij mij ook geen mailtjes uit het script komen rollen zit er een fout in, hier ga ik vanavond even mee aan de slag. Ik zal dan ook het zo goed mogelijk proberen te integreren in de huidige website.

Gun mij alstublieft even wat tijd ;)
 
Dat klopt, mijn code sluit namelijk ook al de HTML pagina af, terwijl je er nu nog code onder zet, dat snapt hij dan niet meer.
Ik zie nu ook dat er geen mails verzonden worden.....

Je zou het kunnen integreren, echter snap ik niet hoe jouw huidige script de mails verstuurd, wanneer deze toegang nodig heeft tot de sendmail programmatuur is het programma een hele eigen library voor de mail.

Aangezien er bij mij ook geen mailtjes uit het script komen rollen zit er een fout in, hier ga ik vanavond even mee aan de slag. Ik zal dan ook het zo goed mogelijk proberen te integreren in de huidige website.

Gun mij alstublieft even wat tijd ;)

ja het huidige contactform was gemaakt via http://www.scriptarchive.com/
echter snap ik er helemaal niks van.
het contactformulier dat ik even had generated (waar ik al maar net gepast aan uit geraakte) werkte op mijn privé site maar niet op de site waar ik nu in vastzit.
smtp stuff heb ik HELEMAAL al geen verstand van :eek:

neem gerust je tijd :)! mijn baas moet het maar begrijpen dat het misschien wat trager gaat dan verwacht.. ik ben hier dan ook geen krak in..
nogmaals bedankt alvast !!!
 
Inmiddels heb ik de mail zelf werkend gekregen. Ga daarvoor als volgt te werk:
Verwijder alles onder
PHP:
$message .= 'Manier van contact: ' . $contactmanier . '<br />';
Voeg daarvoor in de plaats deze code:
PHP:
$from = 'mailer@hdi-gerling.be';
$headers = "From: " . strip_tags($from) . "\r\n";
$headers .= "Reply-To: ". strip_tags($email) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$ontvanger = 'kevin@compoint.be';

require 'PHPMailerAutoload.php';
$mail = new PHPMailer;
//$mail->SMTPDebug = 3;                               // Enable verbose debug output

$mail->isSMTP();                                      // Set mailer to use SMTP
$mail->Host = 'host';					  // Specify main and backup SMTP servers
$mail->SMTPAuth = true;                               // Enable SMTP authentication
$mail->Username = 'user';                 // SMTP username
$mail->Password = 'wachtwoord';                           // SMTP password
$mail->Port = 587;                                    // TCP port to connect to
$mail->AddReplyTo($email);

$mail->From = 'mailer@hdi-gerling.be';
$mail->FromName = 'HDI-Gerling Contact form';
$mail->addAddress($ontvanger);     // Add a recipient

$mail->WordWrap = 50;                                 // Set word wrap to 50 characters

$mail->isHTML(true);                                  // Set email format to HTML

$mail->Subject = 'Contactformulier';
$mail->Body    = $message;
 
if(!$mail->send()) {
    echo 'Mail niet verzonden!';
    echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
    echo 'Mail verzonden!';
}

}}
?>

Vul nog wel even de goede SMTP servers in, dan zou het in principe moeten werken. Laat me dit even weten, dan kunnen we daarna weer verder.
 
Vul nog wel even de goede SMTP servers in, dan zou het in principe moeten werken. Laat me dit even weten, dan kunnen we daarna weer verder.

heb net die zaken veranderd maar krijg nog steeds een blanco pagina. Ik begrijp er niks meer van :/ ben ik dan zo dom x)?
Neem gerust je tijd, maar als je het ziet zitten zou het super zijn moest je mijn pagina werkende kunnen krijgen :).

hier is de originele pagina:

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" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
		<title>HDI Gerling Assurances SA</title>
	
		<link href="css/hdi_gerling.css" rel="stylesheet" type="text/css" media="all" />
		<link href="css/hdi_gerling_print.css" rel="stylesheet" type="text/css" media="print" />
	
		<!--[if IE 6]>
			<link href="css/hdi_gerling_ie6.css" rel="stylesheet" type="text/css" media="all" />
		<![endif]-->
	
		<!--[if IE 7]>
			<link href="css/hdi_gerling_ie7.css" rel="stylesheet" type="text/css" media="all" />
		<![endif]-->
	
	    <style type="text/css">
<!--
a:link {
	text-decoration: none;
	color: #009E31;
}
a:visited {
	text-decoration: none;
	color: #009E31;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
.style6 {font-size: 12px}
.style10 {font-size: 16px}
.style11 {color: #999999}
-->
        </style>
	    <script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
        </script>
	</head>
	
	<body>
		<div id="box"><!-- Box Start -->
			
		  <div id="header"><!-- Header Start -->
				<div id="banner"><img src="images/headers/plaza.jpg" alt="Banner Dummy" width="976" height="176" /></div>
				<div id="meta"><!-- Meta Start -->
					<div class="targetLocation colorBackground">
						
						<a href="indexhomefr.htm" class="targetLocationRight"><img src="gfx/home_icon.gif" alt="Home" height="8" border="0" class="homeIcon" /></a>
					</div>
					<div class="metaNav"><!-- Meta Start -->
					
                      <span class="style6">&zwnj;</span></div>
				</div><!-- Meta End -->
				<div id="logo"><a href="#"><img src="gfx/hdi_gerling_logo.gif" alt="HDI Gerling" /></a></div>
				<div id="claim"><img src="gfx/great_risks_deserve.gif" alt="Wij denken vooruit." width="480" height="120" /></div>
		  </div><!-- Header End -->
			
			<div id="topNav"><!-- Top Navigation Start -->
				<ul>
					<li class="topNavItem"><a href="indexhomefr.htm">Home</a></li>
                    <li class="topNavItem"><a href="verzekeringstakkenfr.htm">Assurer </a></li>
                    <li class="topNavItem"><a href="hdigerlingfr.htm">A propos de nous </a></li>
					<li class="topNavItem"><a href="informations.htm">Informations</a></li>
					<li class="topNavItem"><a href="jobsfr.htm">Jobs@</a></li>
					<li class="topNavItem"><a href="formcontactfr.htm">Contact</a></li>
					<li class="topNavItem"><a href="presse.html">Presse</a></li>
                    <li class="topNavItem"><a href="download.htm">Download</a></li>
				</ul>
			</div><!-- Top Navigation End -->
			
			<div id="content"><!-- Content Start -->
				<div id="left"><!-- Left Start -->
				
				<div id="searchForm"><!-- Search Form Start -->

				  </div><!-- Search Form End -->
				</div><!-- Left End -->
			  <div id="middle"><!-- Middle Start -->
					<h1 class="firstItem style10">Contact<br />
			  </h1>
					<form action="http://hdi-gerling.lu/cgi-bin/formmail.pl" method="post" name="contact" class="form" id="contact" onsubmit="MM_validateForm('voornaam','','R','Nom','','R','Bureau','','R','prefix','','R','Tél','','R','email','','R');return document.MM_returnValue">
					  <input type="hidden" name="recipient" value="info@hdi-gerling.lu">
         			  <input type="hidden" name="subject" value="Formulaire de Contact">
          			  <input type="hidden" name="redirect" value="http://hdi-gerling.lu/thanksfr.htm">
					  <ul id="formList">
					    <li class="formHeader">FORMULAIRE DE CONTACT   - Vos données
						  </li>
						  <li>
							  <div class="label indent">
								  <label for="forename">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* Champs obligatoires</label>
							  </div>
						  </li>
						  <li>
							    <div class="label indent">
							      <label for="forename">Pr&eacute;nom* :</label>
					        </div>
						      <input name="Prénom" type="text" class="firstInputField errorForm" id="voornaam" onblur="MM_validateForm('voornaam','','R');return document.MM_returnValue" maxlength="500" />
						      <div class="clearBoth"></div>
					    </li>
						  <li onfocus="MM_validateForm('Nom','','R');return document.MM_returnValue">
							  <div class="label indent">
								  <label for="surename">Nom* :</label>
							  </div>
							  <input class="firstInputField errorForm" name="Nom" id="Nom" maxlength="500" type="text" />
							  <div class="clearBoth"></div>
						  </li>
						  <li>
							  <div class="label indent">
								  <label for="street">Bureau* :</label>
							  </div>
							  <input name="Bureau" type="text" class="firstInputField errorForm" id="Bureau" onblur="MM_validateForm('Bureau','','R');return document.MM_returnValue" maxlength="500" />
							  <div class="clearBoth"></div>
						  </li>
						  <li>
							  <div class="label indent">
								  <label for="newStreet">Adresse :</label>
							  </div>
							  <input class="firstInputField" name="Adresse" id="Adresse" maxlength="500" type="text" />
							  <div class="clearBoth"></div>
						  </li>
						  <li>
							  <div class="label indent">
								  <label>Pays / Code Postal / Ville :</label>
							  </div>
							  <input name="Pays" type="text" class="firstInputField country" id="Pays" value="L" maxlength="2" />
							  <input class="inputField zipcode" name="Code_Postal" id="Code_Postal" maxlength="500" type="text" />
							  <input class="inputField city" name="Ville" id="Ville" maxlength="500" type="text" />
							  <div class="clearBoth"></div>
						  </li>
						  <li>
							  <div class="label indent">
								  <label>Num&eacute;ro de t&eacute;l&eacute;phone* :</label>
							  </div>
							  <input name="prefix" type="text" class="firstInputField errorForm areaCode" id="prefix" onblur="MM_validateForm('prefix','','R');return document.MM_returnValue" maxlength="500" />
							  <input name="Tél" type="text" class="inputField errorForm directDial" id="Tél" onblur="MM_validateForm('Tél','','R');return document.MM_returnValue" maxlength="500" />
							  <div class="clearBoth"></div>
						  </li>	
						 
						  <li>
							  <div class="label indent">
								  <label for="eMail">E-mail* :</label>
							  </div>
							  <input name="email" type="text" class="firstInputField errorForm" id="email" onblur="MM_validateForm('email','','R');return document.MM_returnValue" maxlength="500" />
							  <div class="clearBoth"></div>
						  </li>
						   <li>
							  <div class="label indent mt1">
								  <label for="notice">Votre question:</label>
							  </div>
							  <textarea class="indent" name="notice" id="notice" rows="10" cols="10"></textarea>
							  <div class="clearBoth"></div>
						  </li>
						  <li class="formHeader">
							  Comment souhaitez-vous être contacté?:
						  </li>
						  <li class="indentText">
							  <input name="communication" id="telefonisch" value="telefonisch" type="radio" />
							  <label class="labelRadio" for="telefonisch">par t&eacute;l&eacute;phone </label>
							  <label class="labelRadio" for="schriftelijk"></label>
							  <input name="communication" id="eMail" value="eMail" type="radio" />
							  <label class="labelRadio" for="eMail">par e-mail</label>
                              <br />
                              <br />
					    </li>
						  
					  <li class="indentText"><span class="boldText2">
					    <input name="Envoyer" type="submit" class="box2" id="Envoyer" value="Envoyer le formulaire" />
					  </span> </li>
					  </ul>
			  </form> 
			  </div>
			
				<!-- Middle End -->
				<div id="right"><!-- Right Start -->
			<div class="whiteBox">		
			
					<div class="highlightbox">
						<div class="highlightboxHeadline">
						  <p>&nbsp;&nbsp;HDI-Gerling Assurances SA Luxembourg</p>
					  </div>
							<div class="quicklinks">
							  <div align="left"><br />
					            <table width="50%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
                                  <tr>
                                    <th scope="col"><img src="images/headers/cat.jpg" width="207" height="265" /></th>
                                  </tr>
                                </table>
					            <br />
					            <strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LIFE IS RISKY </strong><br />
				              </div>
						</div>
					</div>	
			    <ul class="contentList">
				      <li>Si&egrave;ge social et Bureau</li>
				      <h3><br />
				        <br />
				        HDI-Gerling Assurances SA Luxembourg<br />
				        2-4 Rue du Château d'Eau<br />
				        L-3364 Leudelange<br />
				        T : +352 46 36 40<br />
				        F : <span lang="de" xml:lang="de">+352 46 36 44</span></h3>
				      <h3>Nous sommes ouvert du lundi au vendredi de:</h3>
				      <h3>08h30 à 12h00 et de 13h00 à 16h30</h3>
				      <h3>Parking client disponible.</h3>
              </ul>
			    <p class="headline white style11">&nbsp;</p>
				<ul class="contentList">
					<li class="firstItem">
							<a href="mailto:info@hdi-gerling.lu">E-Mail</a>
						</li>
				</ul>
				<div class="quicklinks">
					<ul>
					</ul>
				</div>
				
				
				</div>
				<div class="clearBoth"></div> <!-- after Button always insert .clearBoth <div> -->				
				
			</div>			
											
			

				<!-- Right End -->
				<div class="clearBoth"></div>
			</div><!-- Content End -->
			<div id="footer" class="functions">
			  <p>HDI-Gerling Assurances SA Luxembourg   © 2013* HDI-Gerling <a href="Privacy-Fr.pdf">Privacy</a>
	</div><!-- Box End -->
		
	</body>
</html>
 
Gebruik het script even buiten de originele pagina, maar standalone, dan krijg je hoop ik wel een werkend formulier?
 
Status
Niet open voor verdere reacties.
Steun Ons

Nieuwste berichten

Terug
Bovenaan Onderaan