Link to home
Start Free TrialLog in
Avatar of Aleks
AleksFlag for United States of America

asked on

if form parameter is null redirect

This may be a simple one.

i am passing a form value to another page. if there is no value then redirect to 'sessionended.asp'

The form value is 'empid'  

So ... if empid is null or = ''  redirect to sessionended.asp

I just need help with the syntax please

I am using classic ASP/VB
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aleks

ASKER

Couple of syntax errors, here is what I used:

If IsNull(request.form("employer")) or request.form("employer")   = "" Then
Response.Redirect "sessionended.asp"
End if