0

My form won't submit... nothing happens when clicking the submit button. Any ideas? N.B. I am knackered, I've been up 26 hours :/

Thanks in advance for any suggestions!

        <form action="contact_me.php" method="post" class="contact-form" id="contactForm">
          <div class="controls controls-row">
            <div class="control-group span6">
              <input class="span12" name="name" placeholder="your name" type="text" />
            </div>
            <div class="control-group span6">
              <input class="span12" name="email" placeholder="your email" type="email" />
            </div>
          </div>
          <div class="controls controls-row">
            <div class="control-group span12">
              <input class="span12" name="subject" placeholder="subject" type="text" />
            </div>
          </div>
          <div class="controls controls-row">
            <div class="control-group span12">
              <textarea class="span12" name="message" placeholder="please type your message in here... " rows="5"></textarea>
            </div>
          </div>
          <div class="controls controls-row">
            <div class="control-group span12">
              <button class="btn btn-primary" name="submitButton" type="submit">
                Send Message
              </button>
            </div>
          </div>
        </form>

Edited by mmcdonald

4
Contributors
5
Replies
22
Views
4 Years
Discussion Span
Last Post by mmcdonald
0

could you explain me breifly somemore what the requirement is?

The form should post it's data to contact_me.php, currently it's not even responding. It's acting as a button that's not even in form tags.

0

Instead of line 22-24 use the line below:-

<input class="btn btn-primary" name="submitButton" type="submit" value ="Send Message">

or you can write a javascript onClick event of button

<button class="btn btn-primary" name="submitButton" type="submit" onclick="form.submit">
                Send Message
 </button>
0

Thanks pritaeas! I let out my JS file ^^

<script src="javascripts/jquery.form.js" type="text/javascript"></script>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.