Forums
This topic is locked
Multiple values inserted into session?
05 May 2004 13:37:23 Jon McGee posted:
I want to insert multiple values into a session via an image button.The image button is in a repeat region of a recordset and its value is set to a field in the recordset. I want the user to click on the button for the item(s) they want, that info stored in a session, then displayed in a seperate table.
So a) can multiple values be stored in a single session variable
b) if so, how is that info passed into the session variable via an image
Thanks, Jon.
Replies
Replied 05 May 2004 15:17:08
05 May 2004 15:17:08 Vince Baker replied:
One way of doing this would be to place a hidden field on your page and each time they click on a value, add it to a string (comma seperated) and the you could set this string to a session variable.
When you next need it, you can then create an array by splitting the string using the comma as the delimiter.
If you need some help with the coding of this post back.
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
When you next need it, you can then create an array by splitting the string using the comma as the delimiter.
If you need some help with the coding of this post back.
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 05 May 2004 15:49:52
05 May 2004 15:49:52 Jon McGee replied:
yes, coding help would be great! my image is currently set as <pre id=code><font face=courier size=2 id=code><img src="pub_order.jpg" value="<%=(PublicationsRS.Fields.Item("Title"
.Value)%>" </font id=code></pre id=code>.
I guess the value would be inserted into a <pre id=code><font face=courier size=2 id=code><input type="hidden" </font id=code></pre id=code> field.
The example of what Im trying to do is at www.bioscience.co.uk/new/publications3.asp
But Ive no idea how to sort those values into a string or break down the array so your advice would be most welcome. Thanks!

I guess the value would be inserted into a <pre id=code><font face=courier size=2 id=code><input type="hidden" </font id=code></pre id=code> field.
The example of what Im trying to do is at www.bioscience.co.uk/new/publications3.asp
But Ive no idea how to sort those values into a string or break down the array so your advice would be most welcome. Thanks!