Solved

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

Posted on 2013-02-06
3
430 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
ID: 38862795
<%
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
ID: 38862833
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
ID: 38862835
As always, great work, from a great coder and person.
Take care Padas.

Carrzkiss
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

943 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

7 Experts available now in Live!

Get 1:1 Help Now