How to make a simple Ajax and PHP that will send a post from input?
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')); ?>
精彩评论