-2

I have the following code for an email form from an HTML template. I'd like to make it send email, as the moment I think it doesn't and I need to add some PHP to process the form. Any tips on how to do that for this form?

Thank you!

<!-- Email -->
<article id="email" class="panel">
    <header>

<h2>Email Me</h2>

    </header>
    <form action="#" method="post">
        <div class="5grid">
            <div class="row">
                <div class="6u">
                    <input type="text" class="text" name="name" placeholder="Name" />
                </div>
                <div class="6u">
                    <input type="text" class="text" name="email" placeholder="Email" />
                </div>
            </div>
            <div class="row">
                <div class="12u">
                    <input type="text" class="text" name="subject" placeholder="Subject" />
                </div>
            </div>
            <div class="row">
                <div class="12u">
                    <textarea name="message" placeholder="Message"></textarea>
                </div>
            </div>
            <div class="row">
                <div class="12u">
                    <input type="submit" class="button" value="Send Message" />
                </div>
            </div>
        </div>
    </form>
</article>
6
  • You just asked this question Commented Mar 22, 2013 at 18:26
  • phpmailer? mail(...)? Have you googled this? Commented Mar 22, 2013 at 18:26
  • well the person in the previous question told me to ask a new question Commented Mar 22, 2013 at 18:29
  • php.net/manual/en/function.mail.php and google.ca/… should get you started ;-) Commented Mar 22, 2013 at 18:30
  • Read this before posting question next time: how to ask question: the smart way Commented Mar 22, 2013 at 18:35

1 Answer 1

1

You should read http://php.net/manual/es/function.mail.php

so you get your data with $_POST and then treated data, to use something like this:

$message = wordwrap($message, 70, "\r\n");
mail('[email protected]', 'subject', $message);
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.