Formulier verzend niet naar email

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Erwin Noever

Erwin Noever

20/06/2012 21:20:27
Quote Anchor link
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 :

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?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";
    
?>
Gewijzigd op 20/06/2012 21:43:46 door Erwin Noever
 
Er zijn nog geen reacties op dit bericht.



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.