Why do people code so complicatedly? - Page 3
Page 3 of 3 FirstFirst 123
Results 31 to 41 of 41

Thread: Why do people code so complicatedly?

  1. #31
    the stand in Telepath tekky's Avatar
    Join Date
    Jul 2003
    Location
    College Station, Texas
    Posts
    2,258
    Originally posted by steadyguy
    strip_tags() is great, but you have to be careful ... apparently it doesn't take out mixed case tags. Ie., <sCriPT> ...
    strtolower() usernames have no business being mixed case IMO
    -Karl
    Problem solved? Mark your thread resolved!
    See how many times my link has been used to mark a thread resolved here
    (fixed to work with updated VBulletin... this works again!)

  2. #32
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Systems Vehicle "Running Gear"
    Posts
    22,573
    Originally posted by tekky
    strtolower() usernames have no business being mixed case IMO
    , I'm going to have to get over my English bias that tells me proper nouns are supposed to be capitalised, then!
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

  3. #33
    the stand in Telepath tekky's Avatar
    Join Date
    Jul 2003
    Location
    College Station, Texas
    Posts
    2,258
    Originally posted by Weedpacket
    , I'm going to have to get over my English bias that tells me proper nouns are supposed to be capitalised, then!
    then strtoupper() if thats your preference

    however I wouldnt call a username a noun, its no different than an ID# to me.... (But thats just me...)
    -Karl
    Problem solved? Mark your thread resolved!
    See how many times my link has been used to mark a thread resolved here
    (fixed to work with updated VBulletin... this works again!)

  4. #34
    2($infinity) && $beyond BuzzLY's Avatar
    Join Date
    Nov 2002
    Location
    Star Command
    Posts
    2,435
    my username on PHPBuilder is "BuzzLY." Not buzzly, or BUZZLY, or even BuzzLy. It's not that I'm trying to be a 1337 h4x0r or anything -- it's simply how I prefer to "spell" it. I would be a bit annoyed if I typed BuzzLY as my username on a site and it automatically changed it to buzzly.

    If you are going to go through the trouble of scrubbing, the least you can do is leave the "clean" stuff the way it was.
    New to the board? Check out the guidelines
    | Color Picker | Blogification |
    ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
    With all its sham, drudgery, and broken dreams, it's still a beautiful world.

  5. #35
    the stand in Telepath tekky's Avatar
    Join Date
    Jul 2003
    Location
    College Station, Texas
    Posts
    2,258
    Originally posted by BuzzLY
    my username on PHPBuilder is "BuzzLY." Not buzzly, or BUZZLY, or even BuzzLy. It's not that I'm trying to be a 1337 h4x0r or anything -- it's simply how I prefer to "spell" it. I would be a bit annoyed if I typed BuzzLY as my username on a site and it automatically changed it to buzzly.

    If you are going to go through the trouble of scrubbing, the least you can do is leave the "clean" stuff the way it was.
    hehe, if I designed a username system for public use I might care... my login stuff is generally for me a and a select few friends who also prefer lowercase to mixed case or uppercase...

    if it were for public use... then yah... (i might consider it then )
    -Karl
    Problem solved? Mark your thread resolved!
    See how many times my link has been used to mark a thread resolved here
    (fixed to work with updated VBulletin... this works again!)

  6. #36
    black sheep with red wool Merve's Avatar
    Join Date
    Jul 2003
    Location
    North of the 49th parallel
    Posts
    2,193
    That's why I said to use htmlentities()...so that a user's username may be &amp;lt;hello&amp;gt; but will appear as <hello>

    htmlentities() also takes care of a few other characters, if I remember correctly.
    "A proof is a proof. What kind of a proof? It's a proof. A proof is a proof. And when you have a good proof, it's because it's proven." -- Jean Chrétien

    The Three C's

  7. #37
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Systems Vehicle "Running Gear"
    Posts
    22,573
    Originally posted by tekky
    hehe, if I designed a username system for public use I might care... my login stuff is generally for me a and a select few friends who also prefer lowercase to mixed case or uppercase...
    I guess then PolishGuy isn't one of your select few friends.

    Then again, given the meaning of the word "noun", ID numbers are nouns.
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

  8. #38
    Missing in Action LordShryku's Avatar
    Join Date
    Aug 2002
    Location
    Occupational Hypnotherapy
    Posts
    7,227
    Noticing that everyone on this page at least one uppercase letter cept for tekky.....


    Either way, for the case of authentication, you could use strtolower if you wer going to check the DB like
    WHERE lower(username) = '".strtolower($userName)."'

    But I agree that actually changing the case of usernames would just bug me

  9. #39
    the stand in Telepath tekky's Avatar
    Join Date
    Jul 2003
    Location
    College Station, Texas
    Posts
    2,258
    Originally posted by Weedpacket
    I guess then PolishGuy isn't one of your select few friends.

    Then again, given the meaning of the word "noun", ID numbers are nouns.
    lol no... but the Polish girl is... (my wife that is )
    -Karl
    Problem solved? Mark your thread resolved!
    See how many times my link has been used to mark a thread resolved here
    (fixed to work with updated VBulletin... this works again!)

  10. #40
    Better fan than rebelo! Moonglobe's Avatar
    Join Date
    Apr 2003
    Location
    brain://localhost:left-side
    Posts
    2,044
    Originally posted by stolzyboy
    yep, and if you read the notes at the manual for strip_tags there are many solutions to get around it, and is supposedly supposed to be fixed in PHP5
    yup, 'tis. just tested.
    there's no place i can be, since i found serenity.

  11. #41
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Systems Vehicle "Running Gear"
    Posts
    22,573
    Originally posted by tekky
    lol no... but the Polish girl is... (my wife that is )
    Well there you go then: somehow I suspect she wouldn't appreciate being called the "polish girl"...
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •