- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
I would think it was obvious: they're making sure the numbers are Clear.
And what gets me about the age restriction is that when you sign up the contract says you do it for a billion years.
Admin
((once again, as i wanted to quote, but didn't know about it until i hit reply and submitted it)):
someone reads Raymond Chen's blog in here? =) anyway, i like the method... it's similar to what i would do if i were too lazy to look for VB's IsNumeric function equivalent in JavaScript. (and to be honest, i really don't know the funcion name in JS O:-))
Admin
Admin
Sweden, between Norway and Finland, in the north of Europe. Home land of Ikea & ABBA.
Admin
with code like this, no wonder Anonymous is kicking their ass.....
Admin
Admin
Mahahahahhaaa :DD That was really a good one :D
Admin
Admin
This implementation may be faster than Javascript's regexes. Many regexps suck.
Admin
Another WTF is that spaces are ignored for validation (only). This way the zip will get stored with spaces in the database.
Admin
you are so sued!
Admin
Agree 100%. Thank you for putting that more eloquently than I have ever seen it put.
Admin
Oddly, and despite the obvious fact that Scientologists are despicable money-grabbing rat-bags, this code isn't a huge WTF.
Yes, you could use regular expressions. Not doing so burns the user, not you (a basic Scientologist principle, I would think).
The "zip code" test (I'd like to look up the Swedish equivalent of zip code, but then again I'd like to buy a life, please, Alex) actually works for Sweden, so long as you permit the absence of any entry whatsoever.
The phone number test is better than most I've seen, in that it extracts irrelevant characters (credit-card entry, anyone? Not that I'd recommend that if you're on a Scientology site). It is, however, weird. It's been a while since I've been in Sweden. What exactly is the problem with a number starting with "07"? I thought that was Stockholm, but I'm obviously wrong. The rest of the if-statement is equally mystifying.
I do like the age limitation, though. Uncommonly decent of the perverts who run these sites, I'd say. Or, in the words of St Francis (blessed be he in the eye of a needle) Xavier:
"Give me a child until he is seven and I will give you the man."
Looks like the nutters are aiming for pubescents, then. Lock up yer daughters!
Admin
if they get your land line number then they can get your home address
Admin
And that's why the proposed UK laws against religious hatred are a bad idea, because there's nothing wrong with taking the piss out of stupid belief systems.
Admin
Odd that all of the ads on the page when I got here were advertising "Scientology Video Channel!"
I'd think that thedailywtf would protect it's users from such a dangerous cult of mega-psychos.
Admin
Admin
lol reading thru the source, and noticed this gem too =) What a gold mine! Guess they've never heard of += / .= / common sense? function saveWho() { var cval = ""; cval = cval + fix(mform.M_fornamn.value) +";"; cval = cval + fix(mform.M_efternamn.value) +";"; cval = cval + fix(mform.M_adress.value) +";"; cval = cval + fix(mform.M_postadress.value)+";"; cval = cval + fix(mform.M_land.value) +";"; cval = cval + fix(mform.M_postnummer.value)+";"; cval = cval + fix(mform.M_email.value) +";"; // cval = cval + fix(mform.M_tel.value) +";"; cval = cval + fix(mform.I_yrke.value) +";"; cval = cval + fix(mform.M_age.value) +";"; cval = cval + fix(mform.M_kontaktinformation.value) +";"; cval = cval + fix(mform.M_anledning.value) +";"; cval = cval + fix(mform.M_intresserad.value) +";"; cval = cval + fix(mform.M_forbattra_hos_dig_sjalv.value) +";"; cval = cval + fix(mform.M_fraga.value) +";";