Most of these people who 'hack' websites are just script kiddies. They wouldnt know how to write any kind of code, they just download a piece of someone else's code and find a site it will work on. They won't have a clue how it works, or why. For every script kiddie who grows up, another ten download a script. Its sad how the youth of the word think they are so cool by changing someones website, normally a site with no more security than offered by their host, which is often pretty basic.