Please note that beansnbacon's solution is only one approach of many that you can take. I strongly suggest you try coming up with whatever solution makes the most sense to you before implementing...
Type: Posts; User: KevinWorkman
Please note that beansnbacon's solution is only one approach of many that you can take. I strongly suggest you try coming up with whatever solution makes the most sense to you before implementing...
The highlight tags help preserve formatting. Check out another post that uses them or the link in my signature on using code tags for more information.
When approaching this kind of problem, take...
Where exactly are you stuck? You've posted the question and some code, but not an actual technical question.
PS: When posting code, make sure you use the highlight tags to preserve formatting.