Solved

Break down the URL from request.ServerVariables("URL")

Posted on 2013-02-06
3
426 Views
Last Modified: 2013-02-06
Hello All;
As the title suggest, I need to break down the URL.

Lets say this is the URL

domain.com/something/else/50/page.asp

Now, I need to break down the URL, and get the /50/ from the string.
Any idea's on this one?

Thanks All
Carrzkiss
0
Comment
Question by:Wayne Barron
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
Comment Utility
<%
page = Request.ServerVariables("url")
arrPage=split(page,"/")
response.write arrPage(0)&"<br>"
response.write arrPage(1)&"<br>"
response.write arrPage(2)&"<br>"
response.write arrPage(3)&"<br>"
response.write arrPage(4)&"<br>"

%>
0
 
LVL 30

Author Comment

by:Wayne Barron
Comment Utility
Thanks Padas.
It was weird, I had it set for the (3) and it picked up on the first one, so I had to set it for (5) in order to grab the number.

However, it works like a charm.
And I see that I am not the only one that is up late tonight..

have a good one Padas.
Carrzkiss
0
 
LVL 30

Author Closing Comment

by:Wayne Barron
Comment Utility
As always, great work, from a great coder and person.
Take care Padas.

Carrzkiss
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now