Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session in sub

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am using vbscript.
when I use a sub which has something like session, request or cookies and try to connect it with a button, it does not work. But if there is no session, request or cookies in the sub, it works well. I do not know why.

here is an example of my problem:

...
<input type=button name=try>

<script language=vbscript>
<!--
sub try_OnClick
dim Num
Num=Session(&quot;Num&quot;)
if Num=&quot;&quot; Then
MsgBox &quot;Empty&quot;,1
Else
MsgBox &quot;Good&quot;,1
End sub
-->
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top