gmonkey42: cartoon Sephiroth (tavington)
[personal profile] gmonkey42
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.

January 2020

S M T W T F S
    1234
567891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 4th, 2025 02:41 am
Powered by Dreamwidth Studios