This article is the fourth in a continuing series of DIY tutorials, which aims to make things as simple as possible.
To be honest, I wasn't planning on writing this article, but it would seem that there are quite a few people that want to know - what does the server-side code for the Ajax article look like?
In the previous Ajax article I outlined how to make a simple voting script, and a simple 'shoutbox' using Ajax. If you didn't read that post, I recommend doing so now, before reading this one.
It's always a bit harder to post server-side code, because there are a lot of ways you can do a something, and many people think their way is the better than any other. So let me just say that while there may be other ways to do things, this way works just fine. Anyway, back to your regularly scheduled program.
In this session, you are going to learn how to work the backend (in this case, PHP) for Ajax requests.
(Read more...)


