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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP URL variable substitution

Status
Not open for further replies.

jimfixit

MIS
Aug 5, 2003
116
US
This may be wrong forum but in looking at programming forum nothing there specifically applied.

I have a utility that collects and stores data from switches and routers. That data can then be queried out by calling up a URL and in that URL there are tons of variables that specify query criterion such as date, port number and so on.

It's been 100 years or so since I did much programming and I've not done anything with web-related stuff.

My question is this: Right now I can call on a URL that specifically has values set, such as "2" for the month and "2007" for the year.

But that means I have to edit the string every time some user wants to look at other dates. I've narrowed it down and most generally they want to look at either THIS MONTH SO FAR or LAST MONTH. That means a simple mathematical forumula based on today's date should get it. So I don't need to try to pop up some kind of form for them to fill in, I just need to somehow pass into the URL the results of a calculation based on today's date.

I would be reg-x could be used but, how do I get results for such computations into the URL...for that mater how do I get the URL to invoke to computation process?

Thanks for links to any sites that might shed light.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top