Forums

This topic is locked

Setting session variable with a form....

Posted 17 Aug 2001 16:24:28
1
has voted
17 Aug 2001 16:24:28 Andrew Watson posted:
I would like to set a session variable called ChatUser using the text entered in a text field.

SO.. the guy enters his name in a text field then hits a button. The session variable will now equal what was entered in the text field.

This does sound easy :~)

Can anyone help?

Can anyone help???

Replies

Replied 17 Aug 2001 16:41:51
17 Aug 2001 16:41:51 Owen Eastwick replied:
Yes,

Within the VBScript

<%
Session("MySessionVariable" = cStr(Request("MyTextBox")
%>

You can aslo download an Extension that does this for you, along with lots of other server extensions, from:

www.magicbeat.com


Regards

Owen.

Replied 11 Dec 2001 00:06:58
11 Dec 2001 00:06:58 Alexander Dirks replied:
hi,
could you please help me by introducing me to write cookies in udw 4.01?
i want to write the value of two form fields in o cookie.

thanks a lot!

alex

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

Within the VBScript

&lt;%
Session("MySessionVariable" = cStr(Request("MyTextBox")
%&gt;

You can aslo download an Extension that does this for you, along with lots of other server extensions, from:

www.magicbeat.com


Regards

Owen.


<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