You have to be much more specific...
Show us your code, then possibly someone will be able to help.
We don't know where you are stuck, where your problem is...
With that, the best I can do is offer you a set of links that probably will help you:
This will help you.
There is a lot of information about that over there... see the google results and I'm sure that more than one will solve your issue easily.