Getting a form to work on a website template

  • Thread starter Thread starter Merchant UK
  • Start date Start date
M

Merchant UK

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

<a href="#" class="btn btn-primary btn1">Submit</a>

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
 
So where would i put my return email in the code i've shown in post 1. Thats what i need to know

Thanks
 
Upvote 0
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
 
Upvote 0
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.
 
Upvote 0

Latest Articles