Hm. Well, I think I've figured it out. There seems to be something stopping me though - perhaps a character limit. It works if I use the code I pasted above, but if I use something of a certain length, it won't work. I'll just have to figure out that limit.
Thanks for the reply, hola.