This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > January 2005 > Function to isolate ID in url





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Function to isolate ID in url
idot

2005-01-17, 7:14 pm

I've got an "Email Page" page that allows a person to send the link of any
page to another person.

However, I want to count only the article pages that have a fileid, and
update that record in the database. So I need a function that will check the
referring url for the following string and put the fileid into a var that I
can use to update that record.

here is an example of a referring url that the function would process:

http://www.mydomain.org/growthmanag...sp?fileid=16784

The string the fuction would Iisolate is "fullarticle.asp?fileid=16784"
(obviously the number would vary)

Any url that met that condition, the function would grab the id and put it
into a variable that I culd use to filter a recordset and then update a
record.

Any help would great. Thanks.


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews