HTML/PHP Email Form just sending one word

None of the other questions have resolved my problem. The problem is: I have an html email form, with php, when I click submit to test it sends, but it only sends one word , and that word is: From. (they are all in the same email.php file). Here is the form alone:


    if($_POST["message"]) {
        mail("my email", "Feedback for website",
        $_POST["$message"]. "From: $email");


<form method="post">
                <input type="name" id="name" placeholder="Bill Gates" autocorrect="off" autocapitalize="off" spellcheck="false" required/>
                    <input type="email" id="email" placeholder="" alt="try loading page again." autocorrect="off" autocapitalize="off" spellcheck="false" name="email" required/>
                <textarea name="message" required></textarea><br>
                <button type="submit" onclick="completeFunc()">Submit</button>

Thanks :)

Read more here:

Content Attribution

This content was originally published by King Sam at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: