PDA

Click to See Complete Forum and Search --> : Help - trouble at' mill!


Skeen
Sep 6th, 2000, 08:44 AM
Can anyone tell me why I'm getting an error with the following statement on my .asp?

If StoredPassword = Pass AND Security < 5 Then
Request.Redirect "Main_menu_test.asp"

ElseIf StoredPassword = Pass AND Security = 5 Then
Request.Redirect "Administrator_Level.asp"

Else If StoredPassword <> Pass Then
Request.Redirect "Sorry.asp"

End If

Cheers 'n' beers

Skeen

Ianpbaker
Sep 6th, 2000, 08:59 AM
Hi skeen

It should be response.redirect not request.redirect

That should sort it out

Hope it does

Ian

Skeen
Sep 7th, 2000, 02:59 AM
Cheers Ian

I noticed about 10 seconds after I posted it, and I'd been stressing for around an hour too.

Cheers though, nice1

Skeen.