Background info: I've recently decided to take on a project of making a social browser game. I have nothing large in mind at the moment, but in particular I want to experiment with making a facebook app for fun, that me and my friends can play (perhaps it gets more popular, but let me not get sidetracked).
Firstly, I would like to state that I feel I am above average at programming in general (I have developed a php/mysql website, made a rough 3d game engine in java, some embedded C programming, etc - to give an idea of the level of help I require). As stated, I know php and I can work with sql databases. My javascript is perhaps mediocre as I have not used it extensively, but I am learning and not finding it too difficult. I don't know flash at all, but it seems the trend is towards html5 and canvas.
To-the-point-question: I would like to start with html5+javascript, mySQL database and php. However, I am not too sure how to integrate this into a game. My main concern is what tool to use for communication between client and server. Am I wrong in saying that all relevant calculations (for instance, for resources), are kept server-side as advanced users can possible hack?
Secondly, how would you send data between client and server (obviously posting and reloading the page won't work)? I have used ajax before, but I'm not sure if this is the route to go.
I don't require an intricate answer (although I won't complain if I get one!). I'd be appreciative if someone can simply point me in the right direction. Thank you!
*I guess I should add that the game should be interactive, not text-based (as simply posting would work here)
***Anyone interested in the same problem, check this out: nodejs: Ajax vs Socket.IO, pros and cons (The reason I didn't find this before was that I was not aware of socket connections)