Help with redirecting incorrect unique links

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lilp32
    New Member
    • Oct 2010
    • 43

    Help with redirecting incorrect unique links

    I'm not sure this is even possible but here goes. I created a survey and each user was sent a link with an automatic login using the link and "&u=usernam e". Links were sent out in a hard copy mailing. Unfortunately the mailing left out the "&" before the u=. Obviously the links don't work. Is there some way to create a redirect script for each incorrect unique link?
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    put the whole url (or more or less the whole thing), I need to see what's behind that last argument.

    Jared

    Comment

    • lilp32
      New Member
      • Oct 2010
      • 43

      #3
      Unfortunately the survey host has told me they won't put any new scripts up to help my situation. There doesn't seem to be much I can do on my end since the link isn't even reaching my survey. But just in case you can offer a suggestion, an example of the link is http://www.snapsurveys.com/swh/surve...83877519u=1000.

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        This will work, all of your data is being sent to the variable "k", you will just need to split it out:
        Code:
        if instr(request("k"), "u=") >0 then 'k contains "u="
           k = left(request("k"), instr(request("k"), "u=")-1)
           'truncates k to right before it encounters "u="
           u = right(request("k"), len(request("k"))-instr(request("k"), "u=")-1)
           'assigns everything after that to the variable u
        else 'no problem, url is formed correctly
           k = request("k")
           u = request("u")
        end if
        After this you just need to use u and k instead of referring back to the request object. Let me know if this solves your problem.

        Jared

        Comment

        • lilp32
          New Member
          • Oct 2010
          • 43

          #5
          Thanks for your help with this. Unfortunately I don't think I will be able to use this since I don't have access to the actual site, just to my individual survey.

          Comment

          Working...