Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Passing certain input values.. Please help!

Author  Topic 

Celtics3410
Starting Member

11 Posts

Posted - 2002-06-06 : 15:14:29
I fixed every problem but one. It isn't as important as the last one in terms of this project, but it is something I definitely want to learn how to use effectively. (Code below is from 2nd page)

'---------actual code example----------------
set rcrdset5=conntemp.execute(SQLDropDwn)
dim emplID

'Where 0 is the first in the array, which would be the Employee's ID
emplID = recset5(0)

'---------------------------------------------

Now, normally I could just say:
session("emplID") = request.form ("Employee")
If it were from an input type (text,password,normal drop down, etc)

But my drop down menu is not a fixed number. Depending on the managers ID, it could be 2, could be 22. But that is just background info. Since I assigned a name to this drop down in the Select tag, I have no problem with that, its part of the form.

BUT, I don't know how to pass a regular variable on to the next page. I would like to be able to use it as a session("emplID") variable, but if another way is easier than I will do that.

Another thing I don't understand fully is the request.QueryString command, can anyone explain that one to me?

By the way:
On the 3rd page I did a response.write for emplID, and its empty, nothing is in it. I obviously am not passing it correctly anyway I try.

Thanks,
--Celtics3410 at hotmail dot com

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-06-06 : 15:36:08
You should check out some ASP sites, your question is really an ASP/HTTP issue:

www.4guysfromrolla.com
www.15seconds.com
www.asp101.com
www.aspalliance.com
www.learnasp.com

Go to Top of Page

Celtics3410
Starting Member

11 Posts

Posted - 2002-06-07 : 10:18:53
I know, I have 4 out of those bookmarked. I was just wondering if anyone could tell me here first, before I decided to start looking through them. ASPalliance.com is the only one I've never heard of out of them.

Go to Top of Page

M.E.
Aged Yak Warrior

539 Posts

Posted - 2002-06-07 : 12:33:24
I can help him, but I'll keep it to email so it's not on this board... Unless you guys really wanna see it

Go to Top of Page
   

- Advertisement -