CodePen

HTML

            
               <form action="sent.php" method="POST">
        <ul>	
				<li >
					<label for="email">*Email adres:</label> 
					<input type="text" name="email" id="email">
				</li>
			
	<li >
					<label for="naam">*Naam:</label> 
					<input type="text" name="naam" id="naam">
				</li>
					
			<li >
					<label for="onderwerp">*Onderwerp:</label> 
					<input type="text" name="onderwerp" id="onderwerp">
				</li>
				
            
            <li>
				<label for="vragen">*Vragen / Wensen:</label> 
				<textarea id="vragen" name="vragen" cols="42" rows="3"></textarea>
			 	</li>
				<center>
    				
   					
				
                        <input type="submit" name="send_message" value="Send!">				
								
</center>


			</ul>
		</form>
        
   ////////////////////////////////////////
               <!--send.php-->
   
   <?php

session_start();
$email = $_POST['email'];
$naam = $_POST['naam'];
$onderwerp = $_POST['onderwerp'];
$vragen = $_POST['vragen'];


if(empty($naam) OR empty($email) OR empty($onderwerp)) {
	echo "Uw bent iets vergeten in te vullen.";
}
 else {
	mail($to, $subject, "From: $email");
	echo "Bericht verzonden!";
}


$to = 'tymenw@gmail.com';
$subject = 'contact';



$body = <<<EMAIL

email: $email
naam: $naam
Onderwerp: $onderwerp
vraag: $vragen

EMAIL;
    
?>
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................