Ik ben al uren bezig om een formulier de velden te laten verzenden naar mijn email, maar tot op heden is het me niet gelukt, ik heb gezocht op het web hoe ik dit zou kunnen oplossen maar niks werkt, dus vandaar dat ik het aan jullie vraag.
Alvast bedankt
Php Code :
<?php
/* subject and email variables */
$emailSubject = 'CM Application Form';
$webMaster = '[email protected]';
/* Gathering Data Variables */
$completename - $_POST ['completename'];
$month - $_POST ['month'];
$day - $_POST ['day'];
$year - $_POST ['year'];
$adress1 - $_POST ['address1'];
$adress2 - $_POST ['address2'];
$city - $_POST ['city'];
$state - $_POST ['state'];
$country - $_POST ['country'];
$email - $_POST ['email'];
$skype - $_POST ['skype'];
$country1 - $_POST ['country1'];
$yes - $_POST ['yes'];
$month1 - $_POST ['month1'];
$day1 - $_POST ['day1'];
$factor - $_POST ['factor'];
$yes1 - $_POST ['yes1'];
$yes2 - $_POST ['yes2'];
$yes3 - $_POST ['yes3'];
$texarea1 - $_POST ['textarea1'];
$yes4 - $_POST ['yes4'];
$texarea2 - $_POST ['textarea2'];
$yes5 - $_POST ['yes5'];
$texarea3 - $_POST ['textarea3'];
$texarea4 - $_POST ['textarea4'];
$status - $_POST ['status'];
$texarea5 - $_POST ['textarea5'];
$body = "
<br><hr><br>
Completename: $completename <br>
Date of Birth: $month $day $year <br>
Address1: $address1 <br>
Address2: $address2 <br>
City: $city <br>
State: $state <br>
Country: $country <br>
Email: $email <br>
Skype Id: $skype <br>
The country you want to be a Country Manager of: $country1 <br>
Are you a member of WAZZUB, PerfectInter.net: $yes <br>
If YES, please provide the date you first became a member. : $month1 $day1 <br>
What is your current Factor: $factor <br>
Do you write and speak fluently in your native language: $yes1 <br>
Do you write and speak fluently in English: $yes2 <br>
Can you commit to give online Support to your Countrymen in the WAZZUB Community at a minimum of 3 days per week - 1 hour per day? $yes3 <br>
If you have provided any support to members please state where and how & also provide links to your support materials e.g blogs etc: $textarea1 <br>
Can you commit to translate needed documents on a timely fashion from English to your native language on an ongoing basis as the company requires? $yes4 <br>
Education Back Ground: $textarea2 <br>
Do you have management skills? $yes5 <br>
In no less than 100 words describe your professional background: $textarea3 <br>
In no less than 100 words describe your social background and activities: $textarea4 <br>
What is your overall health status? $status <br>
In NO LESS than 100 words, explain what do you believe makes you the best candidate for this position? $textarea5 <br>
";
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results Rendered as HTML */
$theResults = "
<html>
<head>
<title>CM Application Form</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<!--Start Style Sheet-->
<style type=\"text/css\">
body {
background-color: white;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: black;
text-decoration: none;
}
-->
</style>
</head>
<div>
<div align=\"center\">Your content has been send! thank you for filling out the form.</div>
</div>
</body>
</html>
";
echo "$theResults";
?>
865 views