SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2005
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    replacing characters in a textarea

    Hello, I do not want my server to be overloaded with text replacement. What I am trying to do is when someone submits text or words in a text box or a textarea I need to replace all ' characters with '' characters. I think this task will be too much for the server to handle since there will be thousands of people visiting the website so I need to process this on the client machine. Is this possible to do?

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this task will be too much for the server to handle
    I seriously doubt it unless your server is a commodore 64.

    Any replacement you do on the client could be hacked easily enough, if you're doing the ' -> '' to prevent SQL injection etc it's gotta be done on the server.


Bookmarks

Posting Permissions

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