Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


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.

    <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>
            <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" />            
        <h1>Vikki Holloway</h1>

                <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>


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

      <h2>Contact Vikki</h2>

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

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

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

1 Answer