I want an email to be sent to my email adress via a contact form.On the form a client will input their name,email address and a message.However when the email is sent to my address I can only see the users meessage. How can i make it so that the clients name,email address and message is displayed in the email.
if (empty($_POST) === false)  {
    $errors = array();
    $name     = $_POST['name'];
    $email    = $_POST['email'];
    $message  = $_POST['message'];
    if (empty($name) === true || empty($email) === true || empty($message) === true)   {
        $errors [] = 'Name ,email and message are required !';
    } else {
        if (filter_var($email, FILTER_VALIDATE_EMAIL) === false)  {
            $errors[] = 'That\'s not a valid email address';
        }
        if (ctype_alpha ($name) === false) {
            $errors[] = 'Name must only contain Letters';
        }
    }
    if (empty($errors) === true) {
        mail('someone@hotmail.com', 'Contact form', $message,  'From: ' . $email);
        header('Location: index.php?sent');
        exit();
    }       
}
<!DOCTYPE html>
<html>
        <head>
                <title>A contact form</title>
        </head>
        <body>
            <?php
            if (isset($_GET['sent']) === true) {
                echo '<p>Thanks for Contacting us !</p>';
            } else {
                if (empty($errors) === false) {
                    echo '<ul>';
                    foreach ($errors as $error) {
                        echo '<li>', $error, '</li>' ;
                }
                echo'</ul>';
            }
            ?>  
            <form action="" method="post">          
                <p>
                    <label for="name">Name:</label><br>
                        <input type="text" name="name" id="name" <?php if (isset($_POST['name']) === true) {echo 'value="', strip_tags($_POST['name']), '"';  } ?>>
                        </p>
                        <p>
                            <label for="email">Email:</label><br>
                            <input type="text" name="email" id="email" <?php if (isset($_POST['email']) === true) {echo 'value="', strip_tags($_POST['email']), '"';  } ?>>
                        </p>
                        <p>
                            <label for="message">Message</label><br>
                            <textarea name="message" id="message"><?php if (isset($_POST['message']) === true) {echo strip_tags($_POST['message']);  } ?></textarea>
                        </p>
                        <p>
                            <input type="submit" value="Submit">
                        </p>
                     </form>
                <?php
                }
                ?>
        </body>
</html>
 
     
     
     
     
    