I have a form where all the data that you insert is sent to an email. I added a section so that you can upload images ect .. But when it is sent, the images are not sent, I get the following in the mail:
Imagenes: Array.
This my html
<label for="file-es" role="button">Seleccionar Archivos</label>
<input id="file-es" name="file_es[]" type="file" multiple>
<SMALL class="form-text text-muted">Sube aqui las imagenes para que podamos verlas.Maximo de 5.</SMAL>
<div class="container-contact100-form-btn">
and the php is as follows:
<?php
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$portal = $_POST['portal'];
$piso = $_POST['piso'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$incidencia = $_POST['incidencia'];
$message = $_POST['message'];
$file_es[] = $_POST['file_es'];
$to = "[email protected]";
$email_subject ="Incidencia : ". $incidencia .".";
$email_body ="Hola esto es un correo generado con una web\n\nNombre: ".$first_name."\nApellido: ".$last_name."\nPortal: ".$portal."\nPiso: ".$piso."\nEmail: ".$email."\nTelefono: ".$phone."\nIncidencia: ".$incidencia."\nMensaje: ".$message."\nImagenes: ".$file_es.".";
$headers = "From: $email \r\n";
mail($to,$email_subject,$email_body,$headers);
header("Location: index.html");
?>