I got a CGI/Perl script that reads databases and displays the results on template pages.
I need to be able to get the name of the database that is being read from the url location to be able to use it in a link in the template page.
The URL would look somehting like this:
perl.cgi?i=database&w=template&re=date&rada=012
in witch I would like to get the i field from the URL.
I heard an idea about creating a dummy <span> tag with an id, then within the span tag use document.write to write the location url into the span tag, then using the getElementById it might be possible to use substr(value1,value2) to identify the database call in the url.
I just don't know how to do this if it works.
Any ideas about what I could do to solve this problem?



Reply With Quote



Bookmarks