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>

nothing happens when clicking the submit button.

could you explain me breifly somemore what the requirement is?

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.

Not sure that a button submits without Javascript. You can try

<input type="submit">
commented: Perfect! +2

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>

Thanks pritaeas! I let out my JS file ^^

<script src="javascripts/jquery.form.js" type="text/javascript"></script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.