Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Part of URL? 1

Status
Not open for further replies.
Have you examined the Request.ServerVariables collection?


If not, make a little ASP named sv.asp and paste the following code:
Code:
<%
For Each foo in Request.ServerVariables 
    Response.Write foo & " = " & Request(foo) & "<br>" & vbCrLf 
Next
%>

Now put it on your web server and browse to the page....
your problems will be solved.
 

[google]asp server variables[/google]

A smile is worth a thousand kind words. So smile, it's easy! :)
 
Try using the split function.

Response.Write(Split("[ignore] frmSiteCode=blah[/ignore]", "/")([!]3[/!]))

Split will return an array of strings. In this case, you'll want the 4th element (which has an index of 3).

Make sense?

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top