First off, the code TheRealMint gave you in his most recent post does not work, it was an example he said would be nice if it worked. Remove it, and either use the code he gave you in his first post, and nothing else, or if you want it to work how you originally wanted it in the OP, you won't be able to use it at all.
Other than that, there's a problem with pretty much every line, and I don't have the time right now to fix it.