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?
Help with redirecting incorrect unique links
Collapse
X
-
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
-
This will work, all of your data is being sent to the variable "k", you will just need to split it out: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.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
JaredComment
Comment