Professional Web Applications Themes

Session Variable help please - Macromedia Dreamweaver

I'm new to DW and code isn't my strength. I need to set a session variable for "Hotel ID Code" that's generated from two different variables input to a recordset. The Hotel ID code is generated in the recordset by selecting City and Hotel# from two separate dynamic menus. I've gotten that far, and the those inputs into the HtlIdCode recordset have selected the value of the field HOTEL_ID_CDE. Now how do I set the value of HOTEL_ID_CDE as a session variable? Sorry to be asking the basics, but you go to those who know....

  1. #1

    Default Session Variable help please

    I'm new to DW and code isn't my strength. I need to set a session variable for "Hotel ID Code" that's generated from two different variables input to a recordset.

    The Hotel ID code is generated in the recordset by selecting City and Hotel# from two separate dynamic menus. I've gotten that far, and the those inputs into the HtlIdCode recordset have selected the value of the field HOTEL_ID_CDE.

    Now how do I set the value of HOTEL_ID_CDE as a session variable?

    Sorry to be asking the basics, but you go to those who know.


    stewboy webforumsuser@macromedia.com Guest

  2. #2

    Default Re: ASP VB Session Variable help please

    OK, elsewhere I found out how to code it in jsp. Can someone translate this to VB for me?

    <% Session("Hotel") = (HtlIdCde.Fields.Item("HOTEL_ID_CDE").Value)%>


    stewboy webforumsuser@macromedia.com Guest

  3. #3

    Default Re: Session Variable help please

    Session("HotelIDCDE") = myrecordset.Fields.Item( "Hotal_ID_CDE").Value

    --
    Ron


    Ron Guest

Similar Threads

  1. #39634 [NEW]: session variable and normal variable
    By erhanbaris at gmail dot com in forum PHP Bugs
    Replies: 3
    Last Post: November 27th, 10:09 AM
  2. Cannot set session variable
    By Jean Genie in forum Coldfusion - Getting Started
    Replies: 11
    Last Post: October 26th, 06:40 PM
  3. Session Variable
    By Gmmi in forum ASP
    Replies: 13
    Last Post: March 4th, 02:53 AM
  4. Replies: 1
    Last Post: July 17th, 01:35 AM
  5. [SESSION] Session variable deleted prior to command?
    By Ivo Fokkema in forum PHP Development
    Replies: 0
    Last Post: July 16th, 12:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139