With JQuery trying to send multiple value from html input form and get back result References With JQuery trying to send multiple value from html input form to another php file and get back result This is html form This is JQuery $.post(\"__02.php\", $(\"#form1\").serialize(), function(data){ $(\'#currency_load\').html(data); } ); This is php __02.php print_r($_REQUEST[\'your_form\']); echo \'
test\'; And here expect to see content of print_r($_REQUEST[\'your_form\']); But see only echo \'
test\'; Can not understand what is incorrect. Please advice. From my opinion something is incorrect here $(\"#form1\").serialize(), but what? As if simple situation, but can not understand Ups, added $(document).ready(function() { Now ok... OH, now understand. In file jquery was above html and started before html, so no values in form1
No comments:
Post a Comment