|
|
|
|
|
| | |
|
Active Server Pages ASP a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Session variables from forms |
From: |
David Beal |
Date: |
8/13/2001 4:53:55 PM |
IP: |
64.162.117.152 |
Session variables are not often the best place to be storing your form variables though it can certainly be done. I would store them on the pages themselves and in standard variables. If you don't want them displayed you can store them in hidden variables within a form ie:
<INPUT TYPE="Hidden" NAME="SomeValue" VALUE="<%=vSomeValue%>">
But to answer your questions more specifically. Values are retrieved from a posted form using.
vSomeValue = request.form("SomeValue")
They can be stored to session variables using
Session("SomeValue") = vSomeValue
or
Session("SomeValue") = request.form("SomeValue")
and the returned to a form using
<INPUT TYPE="Text" NAME="SomeValue" VALUE="<%=Session("SomeValue")%>">
|
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|