WEB not sure how to do this

Discussion in 'OT Technology' started by Seeders, Jul 11, 2008.

  1. Seeders

    Seeders OT Supporter

    Joined:
    Jul 10, 2007
    Messages:
    3,750
    Likes Received:
    0
    I have a small ajax utility that puts user-inputted URLs into a database. the application is a bookmarking app for student's course websites. what my problem boils down to is: How would you pass a URL string using the GET method without parsing getting messed up?

    say the student types in:
    http://geog.ucsb.edu/professor/index.php?course=geog5

    then my ajax function would try to go to the following address:
    http://myserver.com/process_new_url...rofessor/index.php?course=geog5&student_id=44

    which seems pretty hazardous.
     
  2. TheDarkHorizon

    TheDarkHorizon \xC0\xFF\xEE

    Joined:
    Sep 26, 2002
    Messages:
    2,396
    Likes Received:
    0
    Location:
    San Francisco, CA
  3. Seeders

    Seeders OT Supporter

    Joined:
    Jul 10, 2007
    Messages:
    3,750
    Likes Received:
    0
    nice thanks.
     
  4. EkriirkE

    EkriirkE Zika Xenu OT Supporter

    Joined:
    Jan 11, 2004
    Messages:
    14,799
    Likes Received:
    0
    Location:
    Dublin & San Francisco, CA
    encodeURIComponent()
     

Share This Page