Can anyone explain the Goto command
I have a a page with a text box called NumberEntered that goes to NumberEntered.asp.
Can anyone please tell me whats wrong with this Goto method ?
Heres the code for NumberEntered.asp
---------------------------------------------------------------------------------
<%
Dim NumberEntered
NumberedEntered = Request.Form ("NumberEntered")
If NumberEntered = 1 Then
Goto 1
Else
Goto 2
End If
1:
Response.Write "You Entered <b>1</b>"
2:
Response.Write "You Entered <b>2</b>"
%>
-------------------------------------------------------------------------------
thanks
__________________
Living a Lie, Timmy
:confused:
I don't this VBScript Uses GOTO
Use a Select Case Instead
[code]
NumberedEntered = Request.Form ("NumberEntered")
Select Case NumberedEntered
Case 1
blah blah
Case 2
blah
End Select