Solved

Passing values with ASP or DAP

Posted on 2002-05-08
14
273 Views
Last Modified: 2012-06-27
I am in dire need of help. I am wanting to do an on-line survey. The survey is to ask employees about
the level of service that out IT support team provided. When a support call is logged it is given a
unique ID#. When the call is completed, an email is sent out with a hyperlink to the survey page. The
survey pages rate the quality of service in several areas and the name and ID# are current required
to be manually entered. Is it possible to have the ID# passed through the hyperlink and be automaticly
filled when the survey page is loaded?

The only thing I could think of would be a cookie, but I am unsure about working with them. I really
need some help on this and any advise would be greatly appreciated.

Thanks,
Ty
0
Comment
Question by:tymallard
  • 6
  • 3
  • 3
  • +2
14 Comments
 
LVL 11

Accepted Solution

by:
thunderchicken earned 100 total points
ID: 6997427
You can do a querystring...

<form method = post action = there.asp?id=<%=yourid%>>
 ...
 ...
<input type = submit>
</form>



there.asp
<%=request("id")%>
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6997488
Or a Session Variable

Session("ID") = "yourID"

Response.Write "Yur ID is "&Session("ID")&"."

You can call it from any page as long as the session is active.
0
 
LVL 11

Expert Comment

by:thunderchicken
ID: 6997495
My only gripe with sessions is if you are using balenced or replicated web servers, your sessions might not stay between the 2 servers.
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 18

Expert Comment

by:mgfranz
ID: 6997513
There is a way around that too... Remember Session Manager?  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmag00/html/stateless.asp

;-)
0
 

Expert Comment

by:drokliss
ID: 6997605
Or you could do it in .net with session state turned off ;)
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6997726
True... if .net is implemented.
0
 
LVL 4

Expert Comment

by:Zvika
ID: 6998366
The most simple thing is to send the ID with the link that is sent to the email somwething like:
http://yourSite/theSurveyPage.asp?id=theGeneratedID

then in the page that the user fill the survey do:
dim id
id = request("id")

<form method="post" name="form1" action=actionPage.asp>
<input name="yourSurveyItem1">
<input name="yourSurveyItem2">
<input name="yourSurveyItem3">
.
.
.
<input type="hidden" name="id" value=<% = id %>>
</form>

the question that left is how do you put the id in the link that is send to the user.
if you need any more help, add acomment

Good Luck
Zvika
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6998773
Zvika, I believe thunderchicken already posted a comment that mentioned the use of URL strings...

Please don't duplicate other experts work.
0
 
LVL 4

Expert Comment

by:Zvika
ID: 6998851
mgfranz
I guess that if you'll read both of our comments you'll see that thunderchicken had made a form that is submmited with a query string on the form action (which is, for my opinion bad asp style) while I suggested a querystring that links to the page with the form and the id as a hidden field in the form.
I don't think it the same solution.. do you?
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6998872
Yes I do... a querystring is a querystring regardless of it's concept.  Generalizing an idea is very prominent here, it helps to get a person to think...
0
 
LVL 4

Expert Comment

by:Zvika
ID: 6998889
Well, mgfranz, justice has been done! ;)
0
 
LVL 11

Expert Comment

by:thunderchicken
ID: 6999071
I dedicate my correct answer to the 40 year old programmers from southern california who drive low rider trucks and hit on underage strippers.

Thanks.
0
 

Author Comment

by:tymallard
ID: 6999096
Come on guys, I appreciate the help, but my inbox is filling up quick. :-)
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6999209
LOL!!!  

[Dave's jealous...]
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question