Results 1 to 3 of 3

Thread: [RESOLVED] Strings <>"& Help With Output From DB

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    UK
    Posts
    119

    Resolved [RESOLVED] Strings <>"& Help With Output From DB

    Hello I need some help, I'm making a tutorial system and I want users to be able to send information like that within code functions and some of this will contain nasty html symbols like "<>&..

    Example: I submit a piece of code in my tutorial

    <font color="#00000" size="14">Blah</font> OR strMessage = strMessage & " / " intCounta, those symbols are a problem. I want users to see them, not the browser to use them and converting them so & becomes &amp; is a pain.

    On the output of people viewing the tutorial, I want them to see that code with its double quotes etc intact without the browser thinkings its actual HTML code.
    Last edited by Shadows; Dec 20th, 2005 at 06:39 PM.

  2. #2
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802

    Re: Strings <>"& Help With Output From DB

    use the htmlentities() function
    Never argue with fools, they will only drag you down to their level, and beat you with experience.

    Q: How do you tell an experienced hacker from a novice?
    A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    UK
    Posts
    119

    Re: Strings <>"& Help With Output From DB

    thanks I got it sorted eariler, thx

Posting Permissions

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



Click Here to Expand Forum to Full Width