Hey,

Just wondering if anyone can help me. I'm trying to get my contact form to post to my email, and also send a receipt type email to the person who filled it out. I also want them to be directed to thankyou.php after filling it out.

I've coded and styled my form. Below is the html...


HTML Code:
<div class="form">

    <!-- Form Code Start -->
    <form class="contactForm" method="post" action="mailer.php">    

      <fieldset>
        <div class="details details-left">
            <label for="Name">Name *</label>
            <input class="validate[required,length[0,100]] text-input" type="text" name="Name" id="Name" />
        </div>

        <div class="details">
            <label for="Email">Email *</label>
            <input class="validate[required,custom[email]] text-input" type="email" name="Email" id="Email"/>
        </div>

        <div class="details details-left">
            <label for="Phone">Phone *</label>
            <input class="validate[required,custom[telephone]] text-input" type="text" name="Telephone" id="Telephone" />
        </div>

        <div class="details">
            <label for="message-title">Message Title:</label>
            <input type="text" name="subject" id="subject" />
        </div>
      </fieldset>

      <fielset>
        <div class="message">
            <label for="message">Message:</label> 
            <textarea rows="10" cols="50" class="validate[required,length[1,1000]] text-input" name="Enquiry" id="Enquiry"></textarea>
        </div>
      </fieldset>

      <fieldset>
            <input class="submit" name="submit_contact_form" type="submit" value="Submit"/>
      </fieldset>

    </form>
</div>

If anyone could help, that'd be great!