Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unable to parse data in the web link

    I have a link in the below way and unable to pass the values to the link


    http://myweb.com/cgi-bin/display_tic...3&carrier=AT&T ----> unable to parse "AT&T" data

    Actually AT&T is the actual value but it is treating AT as a string and I am unable to retrieve the data from the link.
    I have tried all the below ways but none of them are working ...

    http://myweb.com/cgi-bin/display_ticket.cgi?Field7=123&carrier="AT&T" ---> not working
    http://myweb.com/cgi-bin/display_tic...9;carrier=AT&T' ---> not working
    http://myweb.com/cgi-bin/display_tic...rier='AT&T' ---> not working

    But if I pass any simple string it works fine.

    http://myweb.com/cgi-bin/display_tic...carrier=sprint -----> works fine.

    Could anyone please let me know how to proceed further .....

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,627
    Thanks
    0
    Thanked 648 Times in 638 Posts
    You need to encode it so that it appears in the querystring as %26

    http://myweb.com/cgi-bin/display_ticket.cgi?Field7=123&carrier=AT%26T
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Tags for this Thread

    Posting Permissions

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