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("Num"
if Num="" Then
MsgBox "Empty",1
Else
MsgBox "Good",1
End sub
-->
</script>
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("Num"
if Num="" Then
MsgBox "Empty",1
Else
MsgBox "Good",1
End sub
-->
</script>