How to make a simple Ajax and PHP that w开发者_如何转开发ill send a post from input?
- Include jQuery in the page
jQuery.post('/foo.php', jQuery('form').serialize(), doSomethingWithResponse);
<?php doSomethingWith($_POST('name_of_input')); ?>
How to make a simple Ajax and PHP that w开发者_如何转开发ill send a post from input?
jQuery.post('/foo.php', jQuery('form').serialize(), doSomethingWithResponse);
<?php doSomethingWith($_POST('name_of_input')); ?>
上一篇:松花鱼怎么做好吃啊??
精彩评论