Entry tags:
I make spambots cry
I think I have figured out how to code my guestbook such that spambots can't post in it. It can handle ' but if you try to put "//" in the comments (which is what the spambots do, by putting in URLs) it just gives an error message and doesn't save the post.
Woohoo!
I ought to take a PHP class or get a better book or something because as I was trying to find things on php.net, I discovered that I'd coded some things in the past the long way when there's a built-in function that does it for you. Oh well.
That's the beauty of programming: even if you don't know all the keywords and stuff (and I always give my variables and functions names that are unlikely to be reserved keywords) you can still use the basic things like loops and conditionals to make your code do what you want it to. You just end up with much longer code.
Woohoo!
I ought to take a PHP class or get a better book or something because as I was trying to find things on php.net, I discovered that I'd coded some things in the past the long way when there's a built-in function that does it for you. Oh well.
That's the beauty of programming: even if you don't know all the keywords and stuff (and I always give my variables and functions names that are unlikely to be reserved keywords) you can still use the basic things like loops and conditionals to make your code do what you want it to. You just end up with much longer code.