Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP

I need help completing a contact form

Hi guys,

I have designed a website for a client. The website required a contact form. I have coded the HTML and CSS. I am unsure on the PHP code i need to include. Any help would be appreciated.

<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
    <title>Vikki Holloway | Freelance trainer, consultant &amp; contractor</title>
</head>
<body>
    <aside>
        <a>
            <svg version="1.1" id="nav-btn" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
            <path id="list-view-icon" d="M462,108.857H50V50h412V108.857z M462,167.714H50v58.857h412V167.714z M462,285.429H50v58.857h412
            version285.429z M462,403.143H50V462h412V403.143z" />            
            </svg>
        </a>
        <h1>Vikki Holloway</h1>

        <nav>
            <ul>
                <li><a href="index.html">About</a></li>
                <li><a href="careerhistory.html">Career History</a></li>
                <li><a href="contact.html">Contact</a></li>

            </ul>
        </nav>

        <div class="vertical-line"></div>
    </aside>

    <header>
      <h2>Contact Vikki</h2>
    </header>
    <article>

            <p>Have an enquiry? Leave a message.</p>


        <br><hr><br>
    <form name="contactform" method="post" action="contact_form_send.php">
        Name:<br>
        <input type="text" name="name" required>
        <br>
        Email:<br>
        <input type="email" name="email" required>
        <br>
        Message:<br>
        <textarea name="message" rows="10" cols="80" required></textarea>
        <input id="sendbtn" type="submit" value="Send Message">
    </form>

    </article>
    <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
    <script type="text/javascript">
        $( "#nav-btn" ).click(function() {
        $( "nav" ).toggle( "slow" );
        });
    </script>
</body>
</html>

1 Answer

Thanks