Getting a form to work on a website template

Discussion in 'IT & Internet' started by Merchant UK, Aug 31, 2015.

Thread Status:
Not open for further replies.
  1. Merchant UK

    Merchant UK UKBF Ace Full Member - Verified Business

    2,419 592
    Hi all I have the following code on my contact us page

    HTML:
      <div class="main">
         <div class="wrap">
            <div class="section group">
                    <div class="col span_2_of_3">
                      <div class="contact-form">
                          <h3>Contact Us</h3>
                            <form method="post" action="contact-post.html">
                                <div>
                                    <span><label>Name</label></span>
                                    <span><input name="userName" type="text" class="textbox"></span>
                                </div>
                                <div>
                                    <span><label>E-Mail</label></span>
                                    <span><input name="userEmail" type="text" class="textbox"></span>
                                </div>
                                <div>
                                     <span><label>Mobile</label></span>
                                    <span><input name="userPhone" type="text" class="textbox"></span>
                                </div>
                                <div>
                                    <span><label>Subject</label></span>
                                    <span><textarea name="userMsg"> </textarea></span>
                                </div>
                               <div>
                                       <a href="#" class="btn btn-primary btn1">Submit</a>
                              </div>
                            </form>
                      </div>
                      </div>
                    <div class="col span_1_of_3">
                        <div class="contact_info">
    However i do not know how to edit it so that i can email myself all the form contents I've tried to add my email address to here

    but with no luck and when i add the Mailto: command it just takes me to a blank email?? Can anyone help me get my customers comments to my email address :confused:

    Thanks again guys
     
    Posted: Aug 31, 2015 By: Merchant UK Member since: Aug 15, 2010
    #1
  2. ryedale

    ryedale Contributor Full Member - Verified Business

    1,545 368
    Posted: Aug 31, 2015 By: ryedale Member since: Dec 17, 2013
    #2
  3. Merchant UK

    Merchant UK UKBF Ace Full Member - Verified Business

    2,419 592
    So where would i put my return email in the code i've shown in post 1. Thats what i need to know

    Thanks
     
    Posted: Sep 1, 2015 By: Merchant UK Member since: Aug 15, 2010
    #3
  4. ryedale

    ryedale Contributor Full Member - Verified Business

    1,545 368
    You'd put it in the action part of the opening form statement if you wanted to use mailto

    This isn't the best approach though as it's reliant on the user having an active email client on their device.

    Far better to use a form with a simple php script

    Good example here
    http://www.html-form-guide.com/email-form/php-form-to-email.html
     
    Posted: Sep 1, 2015 By: ryedale Member since: Dec 17, 2013
    #4
  5. Merchant UK

    Merchant UK UKBF Ace Full Member - Verified Business

    2,419 592
    Ok, so you would probably guess i'm not very good at websites but, all i need to know is how to get the form working like i have already, The Code is in the first post surely someone can tell me how to send this form in HTML ?

    Thanks
     
    Posted: Sep 3, 2015 By: Merchant UK Member since: Aug 15, 2010
    #5
  6. Merchant UK

    Merchant UK UKBF Ace Full Member - Verified Business

    2,419 592
    Ok Don't panic guys, just this minute found an excellent contact form maker (HTML) and so easy to do https://www.cognitoforms.com/ Just copy the script to your contact page, delete the old one first then add that small bit of code. Did a superb job. So happy and no mucking about with PHP or JavaScript.
     
    Posted: Sep 3, 2015 By: Merchant UK Member since: Aug 15, 2010
    #6
Thread Status:
Not open for further replies.