MarkE
05-06-2003, 04:25 PM
Sometimes I look at the source code of a webpage and I see that the sources for some of the image and external JavaScript files are URLs of server-side pages (like asp or cgi) with a query string at the end, and I wonder: how can they return an image or JavaScript file using a webpage file URL? I have also experienced links in the Microsoft (http://www.microsoft.com) website that are links to EXE (self-extracting) files through the use of page URLs.
Here is an example: go to http://www.easycounter.com/FreeCounter3.html and you will see that it tells you to use a webpage URL for a dynamically-changing image:
Step 2: Add the HTML below to your web pages, substituting values for PageID and Username. The PageID must be unique for each web page that you place the counter on. The PageID may contain letters, numbers, periods, and underscores; it may not contain spaces. All web pages must use the same Username.
<a href="http://www.easycounter.com/cgi-bin/link3.exe">
<img src="http://www.easycounter.com/cgi-bin/count3.exe?PageID,Username"
ismap border="0" width="88" height="31"></a><br>
<a href="http://www.easycounter.com">EasyCounter</a>
Example:
<a href="http://www.easycounter.com/cgi-bin/link3.exe">
<img src="http://www.easycounter.com/cgi-bin/count3.exe?index.html,JohnDoe"
ismap border="0" width="88" height="31"></a><br>
<a href="http://www.easycounter.com">EasyCounter</a>
By the way, in a query string, don't you need to have name-value pairs separated by = signs and & signs? (e.g. ...?x=hello&b=ddd&form=ii )
What is this page doing?
Here is an example: go to http://www.easycounter.com/FreeCounter3.html and you will see that it tells you to use a webpage URL for a dynamically-changing image:
Step 2: Add the HTML below to your web pages, substituting values for PageID and Username. The PageID must be unique for each web page that you place the counter on. The PageID may contain letters, numbers, periods, and underscores; it may not contain spaces. All web pages must use the same Username.
<a href="http://www.easycounter.com/cgi-bin/link3.exe">
<img src="http://www.easycounter.com/cgi-bin/count3.exe?PageID,Username"
ismap border="0" width="88" height="31"></a><br>
<a href="http://www.easycounter.com">EasyCounter</a>
Example:
<a href="http://www.easycounter.com/cgi-bin/link3.exe">
<img src="http://www.easycounter.com/cgi-bin/count3.exe?index.html,JohnDoe"
ismap border="0" width="88" height="31"></a><br>
<a href="http://www.easycounter.com">EasyCounter</a>
By the way, in a query string, don't you need to have name-value pairs separated by = signs and & signs? (e.g. ...?x=hello&b=ddd&form=ii )
What is this page doing?