How to submit a score to a server by cocos2dx-html5

my problem is how to submit a score to a server by cocos2dx-html5?

use ajax to post to your server

I ran into same problem, this was my solution
$.ajax({
type: “GET”,
dataType: “json”,
data: {option: ‘getInfo’ , param: ‘topScores’, player:‘Godines’},
beforeSend: function(x) {
if(x && x.overrideMimeType) {
x.overrideMimeType(“application/json;charset=UTF-8”);
}
},
url: ‘./functions.php’,
success: function(data) {
// ‘data’ is a JSON object which we can access directly.
// Evaluate the data.success member and do something appropriate…
}
});