SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Zealot phpguru's Avatar
    Join Date
    Sep 2005
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [ajax] how to sending post data with & character

    here's my problem

    when my input is: "asdasasd&=adasdasdsad"

    at my ajax code:

    send("test="+test);

    ~> output send("test=asdasasd&=adasdasdsad");

    omg. so then, what's the htmlspecialchars ( PHP ) in javascript

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    encodeURIComponent()


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
  •