mardi 28 mai 2019

Problems with $.post

I am doing some checks on my website to assure that the web browser can run it. If the browser pass the requirements, I want to reload the webpage and send a post argument with jQuery like this.

I have tried the $.post function on jQuery like this:

$.post("index.php", { 
  correcto_obligatorio: true 
});

window.location.reload("index.php")

However, when the browser reloads the web, there is no correcto_obligatorio parameter on $_POST. I used the var_dump php function to print it and all I get is NULL




Aucun commentaire:

Enregistrer un commentaire