I'm facing a problem when i want to send a form with javascript ! In fact the code works well to send the form, but unfortunately i can't find the way to put data in my form.

When we press on the finish button so with no js, it works well and action in bdd is working ! 

The difference between the 2 methods is with js no Form data in the post request. I've already tried to create a form in using javacript but i can't put the name "Form" into my request ?

So what's the best way ? create a new form with js and send it or use the existent one ? Thanks all 

```js
function recuppoint() {
   $.post('../ajax/point.php',{pseudo:pseudo}, function(data) {
      console.log('['+data + ']');
      $('.infos2').html(data);
   var durr =  data.split(" :");

   var test = durr[1].split(" ");
    if(test[1]==0){
 $("#Form").submit();
  }

 console.log(test[1]);

   });
}// End of the function

setInterval(recuppoint, 1000);// Refresh it each second
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
?php
if (isset($_POST['Form']))
{I do something with bdd}
?>

<form method="post" id="Form" action="" >  
<button type="submit" name="Form">Finish</button>
</form>
```

To follow your answers guys i try like this and not working !!!!!

I repeat i don't need an ajax to send my form submit works but no data !

```js
$.post('/test.php', $('#Form').serialize());
```

I can add all path i want no request is post with submit a request is post with no data! Can you explain me why the request .submit() is send with no data 

Second update : [![form data headers in chrome](https://i.stack.imgur.com/p65S4.png)](https://i.stack.imgur.com/p65S4.png)
This picture show you what happened when i post form with the button it's what i need in relation with the bdd !

maybe you can understand well my problem ! When i use js to post : no data in the headers so nothing into chrome i can't see the part you can see on the picture !

Third update :

Jsfiddle : {"error": "Shell form does not validate{'html\_initial\_name': u'initial-js\_lib', 'form': , 'html\_name': 'js\_lib', 'html\_initial\_id': u'initial-id\_js\_lib', 'label': u'Js lib', 'field': , 'help\_text': '', 'name': 'js\_lib'}{'html\_initial\_name': u'initial-js\_wrap', 'form': , 'html\_name': 'js\_wrap', 'html\_initial\_id': u'initial-id\_js\_wrap', 'label': u'Js wrap', 'field': , 'help\_text': '', 'name': 'js\_wrap'}"}

Problem found : no field into my form that' why nothing in the headers 

```html
<form method="post" id="Form" action="" >
<input type="hidden" name="Form" value="" /> <!-- Try now! ;) --> 
<button type="submit" name="Form">Finish</button>
<!-- There are no fields here --> 
</form>
```