Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Need help with session variable
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Need help with session variable

 Post Reply Post Reply
Author
kenyaz View Drop Down
Newbie
Newbie


Joined: 22 September 2002
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote kenyaz Quote  Post ReplyReply Direct Link To This Post Topic: Need help with session variable
    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"
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2004 at 2:44pm
session("paxid") = rs.fields("paxid")
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.