1. Enclose the code in the code tags.
2. Format code properly, use some editor.
3. Is this your whole code?????
If yes, i will recommend you to read tutorials. If no, i will suggest to read forum...