Ik heb een pagina gemaakt waar mensen offertes aan kunnen vragen. Via Youtube heb ik een videotutuorial gevolgd (http://nl.youtube.com/watch?v=rdsz9Ie6h7I). Maar het enige dat in de mail staat is dit:
Email:

Naam:

Website-editor:

HTML:

PHP:

Website titel:

Website onderwerp:

Domeinnaam en webruimte registreren:

Gewenste domeinnaam:

Mijn php file (http://www.*.nl):
<?php
/* Subject and Email Variables */


$emailSubject = 'Offerte Aanvraag ';
$webMaster = '*@*.nl';

/* Gathering Data Variables */

$naamVeld = $_POST['naam'];
$emailVeld = $_POST['email'];
$editorVeld = $_POST['websiteeditor'];
$htmlVeld = $_POST['html'];
$phpVeld = $_POST['php'];
$titelVeld = $_POST['titel'];
$onderwerpVeld = $_POST['onderwerp'];
$registratieVeld = $_POST['regdomeinnaam'];
$domeinVeld = $_POST['gewdomeinnaam'];

$body = <<<EOD
<br><hr><br>
Email: $email <br>
Naam: $naam <br>
Website-editor: $websiteeditor <br>
HTML: $html <br>
PHP: $php <br>
Website titel: $titel <br>
Website onderwerp: $onderwerp <br>
Domeinnaam en webruimte registreren: $regdomeinnaam <br>
Gewenste domeinnaam: $gewdomeinnaam
EOD;

$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);

/* Results rendered as HTML */

$theResults = <<<EOD
<html>
<head>
<title>* - Webdesign</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
.style1 {font-size: 12px}
a:link {
color: #ACBD0D;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #ACBD0D;
}
a:hover {
text-decoration: none;
color: #FFA200;
}
a:active {
text-decoration: none;
color: #ACBD0D;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (website108AFMAKEN.psd) -->
<table width="760" height="770" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td colspan="2"><img src="*.png" alt="" width="760" height="319" border="0"></td>
</tr>
<tr>
<td width="227"><img src="*.png" alt="" width="227" height="451" border="0" usemap="#Map"></td>
<td width="533" background="*.png"><div align="center">
<p>Uw offerteaanvraag is succesvol verzonden. </p>
<p>Wij zullen zo snel mogelijk contact met u opnemen.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p class="style1">&nbsp;</p>
<p class="style1">&nbsp;</p>
<p class="style1">&nbsp;</p>
<p class="style1">&nbsp;</p>
<p class="style1">&nbsp;</p>
<p class="style1">&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div></td>
</tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
<area shape="rect" coords="19,91,145,114" href="*.html" target="_self">
<area shape="rect" coords="22,132,146,154" href="*.html" target="_self">
<area shape="rect" coords="21,172,145,193" href="*.html" target="_self">
<area shape="rect" coords="21,212,145,232" href="*.html" target="_self">
<area shape="rect" coords="19,251,144,273" href="*.html" target="_self">
</map>
</body>
</html>
EOD;
echo "$theResults";
?>

de pagina met de forms (http://www.*.nl):
<html>
<head>
<title>* - Webdesign</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000000;
}
a:link {
	color: #ACBD0D;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #ACBD0D;
}
a:hover {
	text-decoration: none;
	color: #FFA200;
}
a:active {
	text-decoration: none;
	color: #ACBD0D;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (website108AFMAKEN.psd) -->
<table width="760" height="770" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
  <tr>
    <td colspan="2"><img src="*.png" alt="" width="760" height="319" border="0"></td>
  </tr>
  <tr>
    <td width="227"><img src="*.png" alt="" width="227" height="451" border="0" usemap="#Map"></td>
    <td width="533" background="*.png"><div align="center">
      <form name="form1" method="post" action="*.php">
        <p>
          <label>Naam:
          <input name="naam" type="text" id="naam">
          </label>
        </p>
        <p>
          <label>E-mail:
          <input name="email" type="text" id="email">
          </label>
        </p>
        <p>
          <label>
          <input type="radio" name="websiteeditor" value="websiteeditor">
Lever mijn website met de website-editor</label>
          <br>
          <label>
          <input type="radio" name="html" value="html">
Lever mijn website in HTML</label>
          <br>
          <label>
          <input type="radio" name="php" value="php">
Lever mijn website in PHP</label>
          <br>
        </p>
        <p>
          <label>Website titel:
          <input name="titel" type="text" id="titel">
          </label>
        </p>
        <p>
          <label>Website onderwerp:
          <input name="onderwerp" type="text" id="onderwerp">
          </label>
        </p>
        <p>
          <label>
          <input name="regdomeinnaam" type="checkbox" id="regdomeinnaam" value="regdomeinnaam">
          Registreer een domeinnaam (zoals bijvoorbeeld <em>*.nl</em>) en webruimte</label>
        </p>
        <p>
          <label>Gewenste domeinnaam:
          <input name="gewdomeinnaam" type="text" id="gewdomeinnaam">
          </label>
        </p>
        <p>
          <label>
          <input name="zend" type="submit" id="zend" value="Verzend">
          </label>
        </p>
        <p>&nbsp;</p>
        </form>
      </div></td>
  </tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
  <area shape="rect" coords="19,91,145,114" href="*.html" target="_self">
  <area shape="rect" coords="22,132,146,154" href="*.html" target="_self">
  <area shape="rect" coords="21,172,145,193" href="*.html" target="_self">
  <area shape="rect" coords="21,212,145,232" href="*.html" target="_self">
  <area shape="rect" coords="19,251,144,273" href="*.html" target="_self">
</map>
</body>
</html>



ik heb al op internet gezocht en in de reacties bij Youtube gekeken, maar ik word er niet wijzer van.


Okay :)

Reageren