sendmail.php needs some php work
<p>I am having the hardest time to get a simple sendmail.php to work. 
My form html is</p>

<pre><code>&lt;form action=sendmail.php id=contact-form method=post&gt;
    &lt;p&gt;
        &lt;label for=cf_name&gt;Name *&lt;/label&gt;
        &lt;input id=cf_name name=cf_name placeholder='Enter your name...' required=required title=Name type=text /&gt;
    &lt;/p&gt;
    &lt;p&gt;
        &lt;label for=cf_email&gt;Email *&lt;/label&gt;
        &lt;input id=cf_email name=cf_email placeholder='Email address...' required=required     title='Email address' type=email /&gt;
    &lt;/p&gt;
    &lt;p&gt;
        &lt;label for=cf_subject&gt;Subject *&lt;/label&gt;
        &lt;input id=cf_subject name=cf_subject placeholder='Specify subject...' required=required title=Subject type=text /&gt;
    &lt;/p&gt;
    &lt;p&gt;
        &lt;label for=cf_message&gt;Message *&lt;/label&gt;
        &lt;textarea id=cf_message name=cf_message placeholder='Message text...' required=required rows=10 title='Message text'&gt;&lt;/textarea&gt;
    &lt;/p&gt;
    &lt;p&gt;
        &lt;input type=submit value='Send message'/&gt;
    &lt;/p&gt;
&lt;/form&gt;
</code></pre>

<p>And my mailer script is:</p>

<pre><code>&lt;?
    $cf_email = $_POST['cf_email'] ;
    $cf_message = $_POST['cf_message'] ;
    $cf_subject = $_POST['cf_subject'] ;
    $cf_name = $_POST['cf_name'] ;

    mail( "chriscct7@gmail.com", $cf_subject, $cf_message, $cf_name, $cf_email );
    print "Congratulations your email has been sent";
?&gt;
</code></pre>

<p>Just want an email to to go to my email. When it appears in the inbox, the subject they typed is the one that I will see as the subject in my inbox. The from will be their name. The email it came from will be their email And the message inside will be the message they wrote in the form.
Please help.</p>
