SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    What's HTML?
    Join Date
    May 2001
    Location
    San Diego, CA
    Posts
    1,701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    htmlspecialchars() warning.

    I have this bit of code in my script:
    $adcopy = htmlspecialchars("$adcopy", ENT_QUOTES);

    But I keep getting this error message:
    Warning: Wrong parameter count for htmlspecialchars() in /home/sites/site2/web/php/adduser.php on line 196

    Any ideas?
    Ryan Kuhle - A Proud Advisor - Got Questions? Just Ask!
    Get your website started for less than $20! Click Here

  2. #2
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well my manual has nothing on the second argument, but the php.net manual does, & if you have PHP < 4.0.3. it probably will not work, surreally enough the manual suggests that it will work in 3.0.17 ? what happened in the middle is anyones guess.

  3. #3
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm..i use the exact syntax with no problems.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  4. #4
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    with which version....


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
  •