Forums

This topic is locked

session variable problem

Posted 21 Sep 2001 18:06:46
1
has voted
21 Sep 2001 18:06:46 Val Dubuis posted:
Yes, it's sesion variable question again. Don't seem to get it! Please help...

I have "new user sign up page" which takes username into "name" textfield. On submit value of "name" gets inserted into DB and "extended sign up page"
comes up with bunch of fields. I want to store new user name in session variable and pass it to the "extended page" and be able to update DB with further information for that "name". Questions:

Would session variable expression look like this:
<% Session("cur_name"= Request.Form("name" %>

On which page do I create this session variable - where the field "name" is or the next page?

Is recordset required?

Thanks in advance!



Replies

Replied 22 Sep 2001 00:34:15
22 Sep 2001 00:34:15 Viktor Farcic replied:
You can do both ways.

If you want to create session variable on the next page you'll need to fix UD bug. Find and edit part of code UD creates. Go and check this link:
www.udzone.com/showDetail.asp?TypeId=2&NewsId=385

In this case you don't need to create session variable just filter recordset on second page with Request.QueryString("name". This is the option I would choose.

To create session variable on the first page find this code:
***
' *** Insert Record: set variables

If (CStr(Request("MM_insert") <> "" Then
***
and insert below it
<% Session("cur_name"= Request.Form("name" %>

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Yes, it's sesion variable question again. Don't seem to get it! Please help...

I have "new user sign up page" which takes username into "name" textfield. On submit value of "name" gets inserted into DB and "extended sign up page"
comes up with bunch of fields. I want to store new user name in session variable and pass it to the "extended page" and be able to update DB with further information for that "name". Questions:

Would session variable expression look like this:
&lt;% Session("cur_name"= Request.Form("name" %&gt;

On which page do I create this session variable - where the field "name" is or the next page?

Is recordset required?

Thanks in advance!




<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>



Edited by - vfarcic on 09/22/2001 00:36:14
Replied 24 Sep 2001 04:30:53
24 Sep 2001 04:30:53 Val Dubuis replied:
Thank you so much, vfarcic!

It worked! I can continue on my project.

Val

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
You can do both ways.

If you want to create session variable on the next page you'll need to fix UD bug. Find and edit part of code UD creates. Go and check this link:
www.udzone.com/showDetail.asp?TypeId=2&NewsId=385

In this case you don't need to create session variable just filter recordset on second page with Request.QueryString("name". This is the option I would choose.

To create session variable on the first page find this code:
***
' *** Insert Record: set variables

If (CStr(Request("MM_insert") &lt;&gt; "" Then
***
and insert below it
&lt;% Session("cur_name"= Request.Form("name" %&gt;

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Yes, it's sesion variable question again. Don't seem to get it! Please help...

I have "new user sign up page" which takes username into "name" textfield. On submit value of "name" gets inserted into DB and "extended sign up page"
comes up with bunch of fields. I want to store new user name in session variable and pass it to the "extended page" and be able to update DB with further information for that "name". Questions:

Would session variable expression look like this:
&lt;% Session("cur_name"= Request.Form("name" %&gt;

On which page do I create this session variable - where the field "name" is or the next page?

Is recordset required?

Thanks in advance!




<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>



Edited by - vfarcic on 09/22/2001 00:36:14
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic