This question already has an answer here:
My php script doesnt send a mail. What's wrong? Do i need headers or other things? Is mail not supported?
Is lorem ipsum a php no mail hack/bug? Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent suscipit ante ultricies neque tincidunt ullamcorper. Ut dictum tincidunt scelerisque. Suspendisse vitae quam in neque pellentesque consectetur. Ut ultrices posuere diam, nec interdum leo mattis eget. In hendrerit, nisi a commodo tempor,
My index.php
<!-- Form -->
<form action="apply-process.php" method="post" name="apply">
<div class="row">
<div class="six columns">
<label>Your first name</label>
<input class="u-full-width" type="text" placeholder="John" name="first_name">
</div>
<div class="six columns">
<label>Your last name</label>
<input class="u-full-width" type="text" placeholder="Doe" name="last_name">
</div>
</div>
<div class="row">
<div class="six columns">
<label>Your email</label>
<input class="u-full-width" type="text" placeholder="john@doe.com" name="email">
</div>
<div class="six columns">
<label>Memberschip</label>
<select name="memberschip" class="u-full-width" name="membership">
<option value="Option 1">Normal</option>
<option value="Option 2">Donator</option>
<option value="Option 3">eSport member</option>
</select>
</div>
</div>
<label>Message</label>
<textarea class="u-full-width" placeholder="Tell us something about yourself and your hobbies. Remember to include your ingame name and Skype name." name="text"></textarea>
<input class="button-primary" type="submit" value="Submit">
</form>
My process page:
<?php
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$email = $_POST['email'];
$text = $_POST['text'];
$membership = $_POST['membership'];
$to = "administratie@sharp-gaming.nl";
$subject = "New apply from $first_name";
mail ($to, $subject, "From: " . $first_name . $last_name, "Email: " . $email, "Membership: " . $membership, "Message: " . $text);
header('Location: ../index.html');
?>
Thanks, Juul
</div>