passing by url (get method)

Sharky Forums


Results 1 to 6 of 6

Thread: passing by url (get method)

Threaded View

  1. #1
    Ex-*** kid A's Avatar
    Join Date
    Sep 2000
    Location
    Norway
    Posts
    5,322

    passing by url (get method)

    How would I go about it if I wanted to pass a variable (artist) that contained a value with & in it, along the url?

    I think that's what giving me a problem here, that the value is not read any further than to the & symbol in the middle of it.

    In this case the value is Billy Bragg & Wilco, and I dont think it reads the Wilco bit, hence I'm not getting the right results.

    One option is of course to use partial matching with sql (like), but I was wondering if there's something else I could do. I can't change the name of the artist because its stored in the database.

    I also cant use post method because I'm not atually submitting a form..

    Here's what the URL looks like:

    PHP Code:
    /data.php?kat=1&artist=Billy%20Bragg%20&%20Wilco&aid=287 
    Last edited by kid A; 08-28-2003 at 06:02 PM.
    Now listening to various rock and metal
    143rd member to join Sharkyforums.

Posting Permissions

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