jQuery API

jQuery.post()

jQuery.post( url [, data] [, success(data, textStatus, jqXHR)] [, dataType] ) Returns: jqXHR

Description: Load data from the server using a HTTP POST request.

  • version added: 1.0jQuery.post( url [, data] [, success(data, textStatus, jqXHR)] [, dataType] )

    urlA string containing the URL to which the request is sent.

    dataA map or string that is sent to the server with the request.

    success(data, textStatus, jqXHR)A callback function that is executed if the request succeeds.

    dataTypeThe type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).

This is a shorthand Ajax function, which is equivalent to:

$.ajax({
  type: 'POST',
  url: url,
  data: data,
  success: success,
  dataType: dataType
});

The success callback function is passed the returned data, which will be an XML root element or a text string depending on the MIME type of the response. It is also passed the text status of the response.

As of jQuery 1.5, the success callback function is also passed a "jqXHR" object (in jQuery 1.4, it was passed the XMLHttpRequest object).

Most implementations will specify a success handler:

$.post('ajax/test.html', function(data) {
  $('.result').html(data);
});

This example fetches the requested HTML snippet and inserts it on the page.

Pages fetched with POST are never cached, so the cache and ifModified options in jQuery.ajaxSetup() have no effect on these requests.

The jqXHR Object

As of jQuery 1.5, all of jQuery's Ajax methods return a superset of the XMLHTTPRequest object. This jQuery XHR object, or "jqXHR," returned by $.post() implements the Promise interface, giving it all the properties, methods, and behavior of a Promise (see Deferred object for more information). For convenience and consistency with the callback names used by $.ajax(), it provides .error(), .success(), and .complete() methods. These methods take a function argument that is called when the request terminates, and the function receives the same arguments as the correspondingly-named $.ajax() callback.

The Promise interface in jQuery 1.5 also allows jQuery's Ajax methods, including $.post(), to chain multiple .success(), .complete(), and .error() callbacks on a single request, and even to assign these callbacks after the request may have completed. If the request is already complete, the callback is fired immediately.

// Assign handlers immediately after making the request,
    // and remember the jqxhr object for this request
    var jqxhr = $.post("example.php", function() {
      alert("success");
    })
    .success(function() { alert("second success"); })
    .error(function() { alert("error"); })
    .complete(function() { alert("complete"); });

    // perform other work here ...

    // Set another completion function for the request above
    jqxhr.complete(function(){ alert("second complete"); });

Additional Notes:

  • Due to browser security restrictions, most "Ajax" requests are subject to the same origin policy; the request can not successfully retrieve data from a different domain, subdomain, or protocol.
  • If a request with jQuery.post() returns an error code, it will fail silently unless the script has also called the global .ajaxError() method. Alternatively, as of jQuery 1.5, the .error() method of the jqXHR object returned by jQuery.post() is also available for error handling.

Examples:

Example: Request the test.php page, but ignore the return results.

$.post("test.php");

Example: Request the test.php page and send some additional data along (while still ignoring the return results).

$.post("test.php", { name: "John", time: "2pm" } );

Example: pass arrays of data to the server (while still ignoring the return results).

$.post("test.php", { 'choices[]': ["Jon", "Susan"] });

Example: send form data using ajax requests

$.post("test.php", $("#testform").serialize());

Example: Alert out the results from requesting test.php (HTML or XML, depending on what was returned).

$.post("test.php", function(data) {
   alert("Data Loaded: " + data);
 });

Example: Alert out the results from requesting test.php with an additional payload of data (HTML or XML, depending on what was returned).

$.post("test.php", { name: "John", time: "2pm" },
   function(data) {
     alert("Data Loaded: " + data);
   });

Example: Gets the test.php page content, store it in a XMLHttpResponse object and applies the process() JavaScript function.

$.post("test.php", { name: "John", time: "2pm" },
 function(data) {
   process(data);
 }, 
 "xml"
);

Example: Posts to the test.php page and gets contents which has been returned in json format (<?php echo json_encode(array("name"=>"John","time"=>"2pm")); ?>).

$.post("test.php", { "func": "getNameAndTime" },
 function(data){
   console.log(data.name); // John
   console.log(data.time); //  2pm
 }, "json");

Example: Post a form using ajax and put results in a div

<!DOCTYPE html>
<html>
<head>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
  <form action="/" id="searchForm">
   <input type="text" name="s" placeholder="Search..." />
   <input type="submit" value="Search" />
  </form>
  <!-- the result of the search will be rendered inside this div -->
  <div id="result"></div>

<script>
  /* attach a submit handler to the form */
  $("#searchForm").submit(function(event) {

    /* stop form from submitting normally */
    event.preventDefault(); 
        
    /* get some values from elements on the page: */
    var $form = $( this ),
        term = $form.find( 'input[name="s"]' ).val(),
        url = $form.attr( 'action' );

    /* Send the data using post and put the results in a div */
    $.post( url, { s: term },
      function( data ) {
          var content = $( data ).find( '#content' );
          $( "#result" ).empty().append( content );
      }
    );
  });
</script>

</body>
</html>

Demo:

Support and Contributions

Need help with jQuery.post() or have a question about it? Visit the jQuery Forum or the #jquery channel on irc.freenode.net.

Think you've discovered a jQuery bug related to jQuery.post()? Report it to the jQuery core team.

Found a problem with this documentation? Report it on the GitHub issue tracker

  • Wiz

    When using $.post … can you use absolute paths? $.post (“http://www.google.com/post.php”)

    • Henrik

      No it will fall under Same Origin Policy

  • Chandu

    This is not working properly when I try to use with ASP.NET instead..

  • Rafael Pólit

    I have found that using syntax as in the example’s:
    $.post(“test.php”, { name: “John”, time: “2pm” } );

    Yields an error on IE and Chrome (though Firefox understands it perfectly). To correct this issue, both the data’s name and value need to be within quotes:
    $.post(“test.php”, { “name”: “John”, “time”: “2pm” } );

    Can someone confirm this is an issue with the documentation or am I overlooking something?

    Thanks,
    Rafa.

    • https://launchpad.net/~zippyv ZippyV

      Which version of IE are you using? I don’t get any errors with IE8.

      • Rafael Pólit

        IE8 with all the new patches/updates/etc. It happened in Google Chrome as well.

    • Anonymous

      i didn’t notice any trouble using plain keys instead of double quoted keys; but if your code defines global constants, double quoted keys are safer than plain keys; using double quoted keys avoids colision with variable names;

    • Ramsey

      You are quite right. I get a syntax error in IE6 for the line.
      $.post(“/clients/wineanddine/area_station/”, $(‘#search’).serialize(),
      function(data) { .. });

      I believe its the serialize() function that causes the error.

  • shiva

    I want to get data not html from php then i want to use that data in php javascript is that possible. Here constraint for me is i shouldnt send html from php i will just connect to database from php then send that request back to request originator which is php again , now here i will use data coming from server side php in sclient side script to generate html, any suggestions?

    • Name

      use json_encode() on your PHP script, then just remember to set the type to JSON on the post call.

  • http://kahelamp.wordpress.com/ Agi

    Question about the data .post passes to the callback function when in html mode: in Firefox, it returns a complete html (html, head, body tags are included); in Chrome however, only the html content of body (html, head, body tags are no longer there). Is this an inconsistent behavior with Chrome or JQuery?

    I really would like not to code checks for browser usage, I feel it’s ugly…

    • Anonymous

      I found the same problem. If you do:

      $.post(url, function(response, status){
      jQ(‘*’, response).each(function(){
      alert(‘tag – ‘ + jQ(this)[0].nodeName + ” : id – ” + jQ(this).attr(‘id’));
      });
      });

      you’ll see that it only accesses the children of the body tag. In fact, I could only access children of the first child of the body tag. For example, if I have a wrapper div immediately inside the body tag then I can only access children of the wrapper div. The only exception to this (that I found) was in Opera. I’m sure there is a valid reason for this.

      However, if you really need access to the header data then you can do substring replaces on the tag type beforehand.
      BE AWARE that IE requires you to replace the tags with other valid HTML tags, otherwise you lose all jQuery functionality. You also need to wrap the response inside a div for this to work in IE.

      Obviously, you would need to perform some post processing on any altered tags before inserting into the DOM but at least you’ll have access to their attributes so you can rebuild them.

      For example, for an AJAX driven site you may want to insert all the external stylesheets from another page into the current page. To do so, you can use the following (you’ll need the remove the supplementary Z characters from the end of the replacement tag names).

      $.post(url, function(response, status){
      var header = ” + response
      .substring(response.indexOf(“”), response.lastIndexOf(“”)+7)
      .replace(//g, ”)
      .replace(//g, ‘;’)
      .replace(//g, ”)
      .replace(//g, ”)
      .replace(/<meta /g, '<SPANZ ')
      .replace(//g, ”)
      .replace(/<link /g, '<IMGZ ')
      .replace(//g, ”)
      .replace(/<script /g, '<AZ ')
      .replace(//g, ”)
      + ”;

      // Use IMG to refer to link tags since we substituted accordingly
      $(‘IMG’, header).each(function(){
      $(“head”).append(”);
      });
      });

      This will only work in Internet Explorer if href contains an absolute address. If not you’ll need to process further.

      If anyone knows a better way, please reply because I hate how hacky this is.

  • Alec

    When using serialize() and returning in a JSON format, this doesn’t work:

    $.post(“test.php”,
    $(“#testform”).serialize(),
    function(result) {
    // do something
    }, ‘json’);

    I assume because there are no { braces } around the serialize() function, and specific formatting is only expected after a second set of { braces }. So, this does work:

    $.post(“test.php”,
    $(“#testform”).serialize(),
    function(result) {
    // do something
    }, { }, ‘json’);

    It looks iffy, and I don’t know if this is how it’s supposed to work, but it does.

    • http://siliconz.com/blog Richard Lopes

      I can confirm this problem with jQuery 1.4.2.
      I am reversing back to $.ajax() instead.

      • http://twitter.com/richard_lopes richard_lopes

        I withdrawn my comments.
        Actually $.post works perfectly in all cases, if you respect 2 rules:
        - from PHP, Python or whatever the returned content-type MUST be application/json
        - the JSON must be valid according to the JSON specification:
        {“key1″:”val1″,”key2″:”val2″}
        You can skip the quotes with integer values, but keys and string values MUST be inside quotes. Construct valid in Javascript are not automatically valid in JSON.

        • http://profiles.yahoo.com/u/2WDQ5AT43YQRVL4JC3L4474CYQ Shotster

          Thanks, Richard! And for anyone else accustomed to single quoting their JS strings, they MUST be DOUBLE QUOTES for JSON. Read the info at http://json.org/ carefully!

        • DaveBurns

          And remember that they must be double-quotes, not single. Also: Firebug’s Net tab is lenient and will show its JSON tab even if the JSON is not 100% correct.

          It was hard to debug malformed JSON issues because the API doc says “We are now strict about incoming JSON and throw an exception if we get malformed JSON.” Since post is ansychronous, it’s not clear to me in what context the exception is thrown. All I could see is that my callback wasn’t being called and luckily I had read the 1.4 release notes and remembered the comment about JSON. How could I have detected this more quickly?

        • Dru89

          A good way to make sure your json is fully valid is jsonlint.com

    • http://twitter.com/machee Mark Achée

      this works for me using 1.4.2:

      var data = $(“#testform”).serialize();
      $.post(“test.php”, data, function(data) {
      alert(data.result);
      }, “json”);

  • Rahul

    can we make the post (with some key:value parameter) to a cross domain url as well?

    • http://www.learningjquery.com/ Karl Swedberg

      No, not reliably. Browser security restrictions prohibit cross-domain ajax posts.

      • http://juazammo.blogspot.com Juan

        for cross domain requests you should use the JSONP approach

        • http://profiles.yahoo.com/u/YAOCTZOCRWS7XOGOMLJMHEMUVU Joël

          I am looking to do a cross domain request. Can you elaborate on JSONP?

          • http://www.learningjquery.com/ Karl Swedberg

            See jQuery.ajax() for more information about JSONP.

  • http://bract.us/ Courier Software

    How to handle error, let's http 404 or 500 error code?

  • http://www.gbdesign.net/cms/loadpage/Using_AJAX_on_Forms garry taylor

    I have a validation and ajax form script that runs on any active form. By adding parameters to a standard form element I can control if the data should be sent as a Ajax post or posted with a page refresh/reload. This is an amazing little tool that allows me to create a CRUD system in minutes.

    For details on my automatic AjaxForm check out my post here

  • Goof

    Will the Post() method work for binary files submitted through a tag? I want to upload a photo using an AJAX call. Is this possible?

  • http://you.arenot.me Colin Wiseman

    I have noticed that if you do the following:

    $.post(“/IsLoggedIn”, function (data) {
    alert(data);
    }, “json”);

    The return result is treated as a string, even though the method posts to the correct function, and the function only fires on success.

    The only way to get this working without post params:

    $.post(“/IsLoggedIn”, { },
    function (data) {
    alert(data);
    }, “json”);

    I might have been using it wrong, more than likely, but the fact is _sort of_ worked confused me for a bit :D

  • Agustinus_biotamalo

    Guys, i am using a servlet JSP.
    This code below does directly to Google.com.

    $.post(“www.google.com”,{ name: “John”, time: “2pm” } );

    could any one care to help me please T_T

    THanks and God Bless

    • Fubupc

      May be you can add “return false;” after “$.post(…);” line.

  • http://phrozen.mx/ Phrozen

    Is there any way to serialize + sending aditional parameters from a form like

    $.post(“/update”, { “_method”: “put”, $(“update_form”).serialize() }, function(data) {
    …do something afterwards with data…
    });
    });

    I know the ‘easy’ way is to include a hidden value inside the form, but I dont want to do it explicitly on the form. Can I append a value to a serialized form?

    • Dag Einar Monsen

      try data = $(“update_form”).serialize();
      data['name'] = value;
      $.post(“/update”,data,function(data) {
      …..

      • Guest

        var data = $(“update_form”).serialize();

        data += '&name1=value1';
        data += '&name2=value2';

    • Swapna

      $.ajax( {
      type : “POST”,
      url : “../das”,
      contentType : “text/json”,
      dataType : 'json',
      data : $.toJSON($(“form[name=DASform]“).serializeArray()),
      success : function(msg) {}
      );
      i am using this way data is submitting success fully but this is having old data too.. is this something to do with cache.

  • sunitiprabhat

    hi i have a form in a jsp page(page1) form1 with 2 parameters name and class when i send the form by post a success msg is shown but values are not sent to another page which catches them(page2)….
    $(document).ready(function(){
    $(“form#form1″).submit(function() {
    // we want to store the values from the form input box, then send via ajax below
    var fname = $('#fname').attr('value');
    var lname = $('#lname').attr('value');
    $.ajax({
    type: “POST”,
    url: “newStateProc.jsp”,
    data: “fname=”+ fname +”& lname=”+ lname,
    success: function(){
    $('form#form1').hide(function(){alert(“done”)});

    }
    });
    return false;
    });
    });

  • n-for-all

    dear jquery users , i have tried jquery 1.4.2 with $.ajax and $.post with mozilla 4.0 beta , and they arenot working , as firebug shows (the response is delivered successively but the result is not displayed , however the result is displayed well on chrome and mozilla 3.6 ) is it a browser problem or a jquery problem , note that i tried jquery 1.3.2 with jquery.ajax works and the result is displayed in firefox 4.0 beta , i think there is a conflict in 1.4.2 for ajax functions

    • http://dhaval-n.blogspot.com dhaval

      one of my app uses $.post() with jQuery 1.4.2. I've checked it in chrome, ie, mozilla (3.6, 4.0 beta) and it works fine. Try using it alone if there are multiple libraries.

    • Travis

      this is a bug of firebug, if you disable firebug it's fine

      • Serkan Arikan

        Disabling firebug worked for me.

        • Igkovtemp

          Looks like not a bug at all. Explanation taken from here: http://drupal.org/node/748144
          I recently had a problem similar to this on a non-Drupal project. I noticed it in jQuery 1.4.2, but it may have started back in 1.4. I was retrieving JSON via an AJAX call and realized jQuery changed the parsing method. It now uses the built in browser parser instead of the less secure eval() function. However, this means that the received code must be valid JSON. Here are two examples:

          This is valid JavaScript but not valid JSON:
          [ { foo: 'bar', test: 1 } ]

          Here is the valid version:
          [ { "foo": "bar", "test": "1" } ]

          Notice how everything is quoted in double quotes. If this isn’t the case then your AJAX call will fail. My guess is that this is what the Views module is doing (or to be more precise, not doing). I could be off the mark, but this is my best guess without diving into the core and Views code.

          • DarkeLyte

            You should be able to return the numeral without the double quotes. JSON spec requires all object keys be in double quotes as well as all string values, but 1 is a valid value without the quotes, it is a number type.

            So, you should be able to return:
            [ { "foo": "bar", "test": 1 } ]

            That way, when the browser parses the JSON, the 1 is parsed as a number, not a string.

    • Errorman

      same happens to me… using jquery 1.4.2 with $.ajax type Post… the result is showed in the success part via alert but if i go on with a if else thing the result is not set…. dont know how to handle this… :(

  • Perumal

    I have a page where i get a ajax response of fetching a data ex..1st row from a table… it possible to send another request to fetch 2 nd row….in my case 2 nd time $.post is not working???

  • Emotionx

    Download link :D ?

  • Sxcooler

    The link (Returns: XMLHttpRequest) is failed, plz check it out.
    thx

  • F Ashik Ahmed

    Can we do cross-domain POST using the $.post()? I was unsuccessful when I tried using “jsonp” as dataType! Need help I am trying to send a huge ajax request using POST. The GET method looks ugly…

  • F Ashik Ahmed

    Can we do cross-domain POST using the $.post()? I was unsuccessful when I tried using “jsonp” as dataType! Need help I am trying to send a huge ajax request using POST. The GET method looks ugly…

  • F Ashik Ahmed

    Can we do cross-domain POST using the $.post()? I was unsuccessful when I tried using “jsonp” as dataType! Need help I am trying to send a huge ajax request using POST. The GET method looks ugly…

  • F Ashik Ahmed

    Can we do cross-domain POST using the $.post()? I was unsuccessful when I tried using “jsonp” as dataType! Need help I am trying to send a huge ajax request using POST. The GET method looks ugly…

  • F Ashik Ahmed

    Can we do cross-domain POST using the $.post()? I was unsuccessful when I tried using “jsonp” as dataType! Need help I am trying to send a huge ajax request using POST. The GET method looks ugly…

  • http://twitter.com/pukhtoonyar Irfan Khan

    Hi guys, I have a very strange problem with JQuery $.post() I have implemented it in my new web application and get messed response from QA after testing, some say it is working perfectly and some say it is not working; It generate no error and no warning,,, but i am very upset i have almost compeleted the application and it is impossible to use some alternative,,, please if some one has any idea then please help me. Regards

  • http://bradmallow.com briznad

    I’m trying to use $.post(…) in order to work with the tumblr API. However, one of the POST parameters I need to pass is ‘post-id’. For some reason the dash(‘-’) in ‘post-id’ is giving me errors and breaking js.

    I have this code:
    $.post(‘http://www.tumblr.com/api/write', { post-id: tempID }, function(data){
    console.log(“Data Loaded: ” + data);
    });

    I see this error:
    Error: missing : after property id

    Any ideas or workarounds?

    • Phil

      You need to place “post-id” in quotations. Otherwise it looks like you're trying to subtract the “id” variable from the “post” variable.

    • Morning Cat Media

      I meant to reply to this post but made the comment a separate comment – sorry for the duplicate.

      JSON Variables with dashes in tumblr are called liked this:
      title = post[“regular-title”]

    • James

      try camelcase instead of the -

  • Barry

    how would i post to a php class process?

    i.e in page php

    include_once '../include/admin_processes.php';
    $Admin_Process = new Admin_Process;
    $upload = $Admin_Process->upload($_POST, $_POST['upload_reference']);

  • M4bwav

    Some of the examples forget to surround the json keys in single or double quotes.

    • http://www.learningjquery.com/ Karl Swedberg

      JSON isn't required for sending data via $.post(). The examples are using object literal notation, and as such are perfectly fine the way they are.

      • Bob

        That made you sound like an arrogant douche.

  • http://twitter.com/deadbankclerk Marc O'Morain

    What happens to the 'data' parameter after the call returns? Does data need to remain consistent until after the 'success' callback is fired, or is the data copied internally?

    • http://twitter.com/deadbankclerk Marc O'Morain

      Also – if the HTTP request returns a value that is not 400 (OK), does the error handler fire, or does the success callback fire?

    • Liufeigoodluck

      I think you are 天才!

  • Morning Cat Media

    JSON Variables with dashes in tumblr are called liked this:
    title = post[“regular-title”]
    See this: http://morningcat.com/post/1275138917/json-variables-with-dashes-in-tumblr

  • Liufeigoodluck

    I think you are 天才!

  • http://coolemailforwards.com Funny Email forwards

    Nice article with examples for jQuery.post(). Thanks for sharing this…

  • Nqminh1988

    Hi all,

    I have problem when sending long data with post method to php page . I can't get data on php page . Please help me !

    Thanks.

  • Vijthlksahd

    dsfsd

  • Vanhooferwin

    is it possible to return the result, if so how is this done ? can anyone help me I tried:

    $.post(
    AJAXurl,
    {data: JSONdata},
    response,
    'json'
    );
    return response;

    but this is not working.

    • Wtorek

      Try this:
      $.post(myURL, myData, function(data) {
      return data;
      })

  • frodo123

    How do you handle server side validation errors with this?

    • http://www.learningjquery.com/ Karl Swedberg

      See the “Additional Notes” section above. In particular: “If a request with jQuery.post() returns an error code, it will fail silently unless the script has also called the global .ajaxError() method.” So, if the server sends back an error code, you can handle it with http://api.jquery.com/ajaxError/. If you're running a server-side validation script and it successfully identifies a problem with user input, then you can handle its response in the success callback.

  • Splints77

    Hello umm im using asp.net(VB.net)
    and this code doesn't work
    $.post(“Default2.aspx”, { post2: “this is from jquery” });
    please help tnx :)

    • Splints77

      umm sorry for this my recent post I got it already sorry :P

  • Krystian

    Can any body tell me if I will be able to use jQuery post with mod_rewrite…
    I can call the webpage but I CAN'T send variables!!
    cry for help!!

  • Golipour

    I have a problem with IE.
    My post function is not working in IE. I tried this code:
    $.post(this.location, {}, callBackFunction, “json”);

    It works in FireFox and Chrome but in IE doesn`t work without any error.
    What is the problem?

  • Jay

    Is it possible to use this to post file uploads to the server?

    • Pwwang

      file uploads is not avaliable by ajax method

      • tim

        sure it is, you just have to set the forms correct encoding type, the size of the post header, and the data blob of your upload encoded in base64. It's only that you can't read the value of a file from the disk to get the file data using javascript because of domain issues. But if that data came from another source – say a Java app, then it would still work through ajax post.

    • Steven Benjamin

      ExtJS uses iframe to upload images via ajax. check out the examples on http://www.sencha.com

      • http://www.learningjquery.com/ Karl Swedberg

        Or, you can use Mike Alsup's jQuery Form Plugin.

  • Sourcegeek

    Any way to make a loader for a $.post request? Thanks

  • Crazyaug15

    How to make $.post() call as synchronous ? It is very urgent requirement in my project . Can any body help me on this?

    • http://twitter.com/brutuscat Mauro Asprea

      I would say that you can do the following:

      $.ajaxSetup({async:false});

      And then call to $.post

  • Atefatia16

    when i post some arabic value from a form using ajax it gives ???????? !

  • Ssss

    test

  • http://iamkevinjohnson.myopenid.com/ Kevin

    How would I $.post() something like this:

    var xmlString = '' +
    '<request><login><username>admin</username><password>admin</password></login>' +
    '<req_operation><retrieve><user><id></id><username>kj</username></user></retrieve>' + '</req_operation></request>';

    THANKS!

    • Ruggie1of1

      $.post(“action.php”, {“xmlString”:xmlString}, function (response){alert(response);});

      • Tt

        oh

  • http://iamkevinjohnson.myopenid.com/ Kevin

    How would I $.post() something like this:

    var xmlString = '' +
    '<request><login><username>admin</username><password>admin</password></login>' +
    '<req_operation><retrieve><user><id></id><username>kj</username></user></retrieve>' + '</req_operation></request>';

    THANKS!

  • Salman

    jQuery.post() is a fantastic functionality overall.

  • SparK

    how can I make post throw an exeption when response is not 200?
    (and be able to catch it later)
    because I tried setting $().ready(function(){ $.ajaxSetup({ error to a custom function and throw me the 404, 500, 0, parsererrors and timeouts but I couldn't catch it.
    even it being thrown when I call post, it's not thrown BY post… thus not catchable.

  • Maddy

    how to send an array of string with string keys as data?

  • Quiff

    is it possible to get the name of an input in the form via a function with some criteria, like a checkbox thats checked for instance?

    • Quiff

      I found out its possible using $.ajax()

  • AnnoyedByJquery

    This method causes a php file to return everything following a “->” as html. This is very bothersome when using mysqli functions.

    • Elquchiri

      Good think man :)