Below is a script I use to strip everything from a url except the actual
page. So for example, "http://www.cnn.com/mypage.asp?arti cle=5&id=20"
becomes "mypage.asp ".
I'm looking for a script that will strip any querystring from a url if it
exists, so my result would be "http://www.cnn.com/mypage.asp".
Can someone help me modify my script below to achieve this result? I'm
horrible with string functions.
CODE to Get URL **************
Right(Request.S erverVariables( "SCRIPT_NAME"), Len(Request.Ser verVariables("S CRIPT_NAME"))-InStrRev(Reques t.ServerVariabl es("SCRIPT_NAME "),"/"))
page. So for example, "http://www.cnn.com/mypage.asp?arti cle=5&id=20"
becomes "mypage.asp ".
I'm looking for a script that will strip any querystring from a url if it
exists, so my result would be "http://www.cnn.com/mypage.asp".
Can someone help me modify my script below to achieve this result? I'm
horrible with string functions.
CODE to Get URL **************
Right(Request.S erverVariables( "SCRIPT_NAME"), Len(Request.Ser verVariables("S CRIPT_NAME"))-InStrRev(Reques t.ServerVariabl es("SCRIPT_NAME "),"/"))
Comment