开发者

JQuery call to .php file and passing three arguments

开发者 https://www.devze.com 2022-12-17 05:13 出处:网络
I want to call a .php file and pass three arguments so that the .php files GETS from the query string. I am new to JQuery. Can someone illustrate how to call the .php fil开发者_如何学运维e using JQuer

I want to call a .php file and pass three arguments so that the .php files GETS from the query string. I am new to JQuery. Can someone illustrate how to call the .php fil开发者_如何学运维e using JQuery?


Check the jQuery documentation. They provide a few examples that should get you started. The example you're most interested in looks something like this:

$.get("myphpfile.php", 
      { param1: "John", param2: "2pm", param3: "Wed" },
      function(data){
           alert("Data Loaded: " + data);
      }
);
0

精彩评论

暂无评论...
验证码 换一张
取 消