javascript - jQuery post() to php page ← (PHP, JavaScript, JQuery)

Solution:

$.post("page2.php", { test1:test1 , test2:test2, test3:test3 }); 

Answer



Solution:

Since you are learning, you might try to isolate problems by writing shorter chunks of code and seeing if they work first. In this case your first problem is an ordinary typo (test3=test3, instead of test3: test3) so your whole JS does not parse. You should be seeing the relevant error message in the firebug console (or chrome console).

Source