473,378 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Help with redirecting incorrect unique links

lilp32
43
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=username". 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?
Feb 17 '11 #1
4 1877
jhardman
3,406 Expert 2GB
put the whole url (or more or less the whole thing), I need to see what's behind that last argument.

Jared
Feb 19 '11 #2
lilp32
43
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.
Feb 23 '11 #3
jhardman
3,406 Expert 2GB
This will work, all of your data is being sent to the variable "k", you will just need to split it out:
Expand|Select|Wrap|Line Numbers
  1. if instr(request("k"), "u=") >0 then 'k contains "u="
  2.    k = left(request("k"), instr(request("k"), "u=")-1)
  3.    'truncates k to right before it encounters "u="
  4.    u = right(request("k"), len(request("k"))-instr(request("k"), "u=")-1)
  5.    'assigns everything after that to the variable u
  6. else 'no problem, url is formed correctly
  7.    k = request("k")
  8.    u = request("u")
  9. 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
Feb 23 '11 #4
lilp32
43
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.
Feb 23 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Koncept | last post by:
Sorry for asking, but I give up on this situation. I am a total n00b at Perl and have only used it for about 1 week now. I would really appreciate somebody's help here because I am really feeling...
3
by: Dan | last post by:
Hi I tried the following from the help file... When you create or modify a unique index, you can set an option to ignore duplicate keys. If this option is set and you attempt to create...
0
by: Mesmeric | last post by:
The help files allege that whilst existing fields have read-only CollatingOrder, "You can set the CollatingOrder property of a new, unappended Field object if you want the setting of the Field...
9
by: dave m | last post by:
I need to be able to retrieve a unique ID from a users PC. I needs to be something a user could not easily change, like the computer name. Could someone point me in the right direction to find ...
1
by: noor | last post by:
Hi, I'm creating an interface for a network device basically its a GUI for cofiguring the devices. Configration Commands are working fine on command prompt I just want to make there GUI so my...
1
by: daldridge | last post by:
I have a unique-elements/sorting question (who doesn't?), but haven't yet been able to get appropriate template/select/for-each processing working. I don't fully grok the Muenchian technique yet...
1
by: ronnchpra | last post by:
Hello, Im still kind a new to C++ Programming? Can anyone help me write a small code that would generate 50 random numbers, say from between 1-100? This is a small part of a program I'm...
0
by: prabhabalakrishnan | last post by:
Hi friends, I m prabha,i m new to this forum.......i m very interested in solving C puzzles......i dont know any links which has a collection of cpuzzles along with their...
3
osward
by: osward | last post by:
Hi, everyone, I had managed to make use of the date link from a simple calendar script to my query table. When I click on the date's link or Prev and Next Month link, The table first row will be...
2
by: karthikeyanck | last post by:
foreach(@sip){ system ("nslookup $_ >> temp1"); } The above pgm doesn't redirect the output to the temp1 file... but when it is, system("nslookup google.com >> temp1"); it works
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.