I have a a page that might or might not have a URL variable. I want to do an if statement like if variableexists then<BR>Anything like the IsDefined() function in ColdFusion?
Why not simply do a:<BR>Myvariable = request.querystring("myVariable")<BR><BR>IF MyVariable = "" THEN<BR> response.write("my variable is empty")<BR>ELSE<BR> response.write("my variable is NOT empty")<BR>END IF<BR>
if request.querystring("this") = "" then<BR> 'it either doesn't exist or has no value<BR>else<BR> 'do something else<BR>end if<BR><BR>Is that what you are looking for?
Looks like it. So if a variable hasn't been defined in ASP and doesn't exist it will be an empty string??