# jQuery Form Doesn't Post

**URL:** <https://discourse.cakephp.org/t/jquery-form-doesnt-post/9203>\
**Category:** Need Help\
**Created:** [April 5, 2021, 12:52am UTC](https://discourse.cakephp.org/t/jquery-form-doesnt-post/9203 "2021-04-05T00:52:53Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Jawfin](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jawfin](https://discourse.cakephp.org/u/Jawfin)\
**Post date:** [April 5, 2021, 12:09pm UTC](https://discourse.cakephp.org/t/jquery-form-doesnt-post/9203/6 "2021-04-05T12:09:11Z")

</div>

> [@makamo66](#):
>
> How is the button going to send the form data if it’s outside of the form?

Because your JavaScript is doing a Post command. All this is automatic within a form, as it was back in the '90’s! You don’t need any JavaScript to post when the submit input button is within the form.

For your scripts etc., maybe show the whole file here if possible. As a disclaimer though I won’t be providing code solutions until you consider the decision I put before you here: [Passing Variable to the Method - #15 by Jawfin](https://discourse.cakephp.org/t/passing-variable-to-the-method/9199/15)

---

_[View the full topic](https://discourse.cakephp.org/t/jquery-form-doesnt-post/9203)._
