How to get a PHP variable value from another PHP file using jquery?
问题 I would like to know how to get get a PHP variable value from another PHP file using jquery. In fact I have to files: test.html and moslem.php . the code of test.html file is as below: <html> <head> </head> <body> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> setTimeout( "test()", 1000); function test() { $.ajax({ url: 'moslem.php', type: 'POST', data: , success: function(data) { document.write(data);