2 |
Using a normal HTML link to pass data:
-
Everything after the first question mark in a URL is put into the QUERY_STRING variable:
-
<a href="http://www.some.box/sign.pl?passed-argument"> Click here to run the program. </a>
-
The QUERY_STRING variable is "passed-argument".
-
Everything after an executable in the path name is put into the PATH_INFO variable:
-
<a href="http://www.some.box/walk.pl/direction=north/speed=slow"> Start the program. </a>
-
The PATH_INFO variable is "direction=north/speed=slow".
-
These techniques are required by some search engines, such as WAIS, to pass keywords for the search.
|