Print Page | Close Window

Need help with session variable

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=9757
Printed Date: 31 March 2026 at 6:23pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Need help with session variable
Posted By: kenyaz
Subject: Need help with session variable
Date Posted: 11 February 2004 at 8:22pm
The following code writes to a table called "trips".
It writes the SeatID variable to the "seat" field.
This all works fine.

What I need to do is take the Blue part and make that into a session where it is red right now. All code here works except for the red part - that is the part I need to add.

I know the red part is incorrect but I am stumped. This is just an example to try to explain what I need.

Any ideas? Still new at ASP and definitely new at trying to make session variables


squery = " update trips set Seat" & Session("Seatid") & "='" & rs.fields("paxid").value & "' where TripID =" & Session("tripid")
conn.execute squery
session("paxID" & Session("Seatid") & ")= & rs.fields("paxid").value &
Response.Redirect "fourth.asp"



Replies:
Posted By: pmormr
Date Posted: 13 February 2004 at 2:44pm
session("paxid") = rs.fields("paxid")

-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net