hola. tengo un formulario de contacto el cual no me muestra el mail del remitente al recibirlo y cuando confirma que fue enviado quisiera que quede en la misma página.
espero me puedan ayudar.   
Código HTML:
Ver original- <FORM id="contacto" name="contacto" action="enviar.php" method="POST"> 
- <input type="text" name="nombre" required placeholder="Escribe tu nombre aquí" required> 
- <input type="text" name="apellidos" required placeholder="Escribe tu apellido aquí" required> 
- <input type="email" name="email" required placeholder="Tu e-mail" required> 
- <input class="mensaje" type="text" name="mensaje" required placeholder="Escribe tu mensaje aquí" required> 
-   
-   
Código PHP:
Ver original- <?php 
- $nombre = $_POST['nombre']; 
- $mail = $_POST['mail']; 
-   
-   
- $header = 'From: ' . $mail . " \r\n"; 
- $header .= "X-Mailer: PHP/" . phpversion() . " \r\n"; 
- $header .= "Mime-Version: 1.0 \r\n"; 
- $header .= "Content-Type: text/plain"; 
-   
- $mensaje = "Este mensaje fue enviado por " . $nombre . ", \r\n"; 
- $mensaje .= "Su e-mail es: " . $mail . " \r\n"; 
- $mensaje .= "Mensaje: " . $_POST['mensaje'] . " \r\n"; 
- $mensaje .= "Enviado el " . date('d/m/Y', time()); 
-   
- $asunto = 'Asunto del mail recibido'; 
-   
-   
- echo 'Mensaje enviado correctamente'; 
- ?> 
Código CSS:
Ver original- #form{ 
-  width: 470px; 
-  height: auto; 
-  backgroud-image: url(aquí la ruta de la imagen de fondo); 
-  margin: 0 auto; 
-  padding: 0 1%; 
-  box-shadow: 5px 5px 0 #AAA; 
-  border-radius: 5px; 
- } 
- input[type=submit]{ 
-  background-color:black; 
-  height:50px; 
-  width:98%; 
-  //border:none; 
-  font-weight:400; 
-  letter-spacing:2px; 
-  color:#FFFFFF; 
-  cursor: pointer; 
- } 
- input{ 
-  width: 98%; 
-  height: 40px; 
-  font: 300 24px "Open Sans", Arial, sans-serif; 
-  margin: 5px 0 10px 0; 
- } 
- .mensaje { 
-   width: 98%; 
-   height: 200px; 
-   font: 300 24px "Open Sans", Arial, sans-serif; 
-   margin: 5px 0 10px 0; 
- }