Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

Passing values with ASP or DAP

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
tymallard
Asked:
tymallard
  • 6
  • 3
  • 3
  • +2
1 Solution
 
thunderchickenCommented:
You can do a querystring...

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



there.asp
<%=request("id")%>
0
 
mgfranzCommented:
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
 
thunderchickenCommented:
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
mgfranzCommented:
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
 
droklissCommented:
Or you could do it in .net with session state turned off ;)
0
 
mgfranzCommented:
True... if .net is implemented.
0
 
ZvikaCommented:
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
 
mgfranzCommented:
Zvika, I believe thunderchicken already posted a comment that mentioned the use of URL strings...

Please don't duplicate other experts work.
0
 
ZvikaCommented:
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
 
mgfranzCommented:
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
 
ZvikaCommented:
Well, mgfranz, justice has been done! ;)
0
 
thunderchickenCommented:
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
 
tymallardAuthor Commented:
Come on guys, I appreciate the help, but my inbox is filling up quick. :-)
0
 
mgfranzCommented:
LOL!!!  

[Dave's jealous...]
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 6
  • 3
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now