This should probably be subtitled "be thankful if you don't read this language" (ha). Check out this excellent link of horrendously bad code from Micha Schopman on CF-Talk. I'm sure it took far longer to debug than it did to write. <g>
http://www.mschopman.demon.nl/horror.txt
(I had originally attributed this blurb to Matt Osborn but it was actually Micha Schopman.)
Seriously, thanks for sharing. I needed a good laugh!
Ouch. Looking at it just hurts. If anything, at least loop over the form structure or something.
I'm sure there are a hundred better ways to do form validation, however looking at that code just made my day :).
:-)
Granted, it gives us absolutely no clue what the heck it's verifying in 3 parts, but anyway...
If you cross your eyes and stare at it for 30 seconds it turns into a 3D lump of **** (you fill the blanks)
seriously though, my brain now aches from seeing that - cheers for the laugh
If you cross your eyes and stare at it for 30 seconds it turns into a 3D lump of **** (you fill the blanks)
seriously though, my brain now aches from seeing that - cheers for the laugh
:) ~~