in reply to Problem with code

What are the error messages you get?

P.S. next time use <code></code> tags around your code please, for readibility.