开发者

How to make a simple Ajax and PHP that will send a post from input?

开发者 https://www.devze.com 2023-02-17 01:18 出处:网络
How to make a simple Ajax and PHP that w开发者_如何转开发ill send a post from input? Include jQuery in the page

How to make a simple Ajax and PHP that w开发者_如何转开发ill send a post from input?


  1. Include jQuery in the page
  2. jQuery.post('/foo.php', jQuery('form').serialize(), doSomethingWithResponse);
  3. <?php doSomethingWith($_POST('name_of_input')); ?>
0

精彩评论

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