> Q1. If I click on a link to go to another HTML page say name.html, I > lose the "hop=some_data" part. How do I make the "hop=some_data" go with > the "name.html" with the <a> tag from an HTML document ? Is this > possible or a script can do this only ?
This is not how a relative link works. Everything after the last '/' is lost. However with enough creativity anything can be made possible in Javascript. > > Q2. The order page calls a Perl script say "orderpage.pl", I want the > script to capture the "hop=some_data". I got the script to print the > whole %ENV, and I see no "HTTP_REFERER". I thought "HTTP_REFERER" would > show the url that called "orderpage.pl" with the "hop=some_data" . But > if I cannot see "HTTP_REFERER", then how do I get the script to capture > the > "hop=some_data" ? You should be seeing the previouse URL in the environment variable HTTP_REFERER. Contrary to what someone else said it will contain the query data. It might not exists because the browser is not sending it. Look at the HTTP traffic with a sniffer to verify the browser is sending it. Some more information about what web server you're using will help fix the problem too. -- Cult - A sociotype of an auto-toxic meme-complex, composed of membots and/or memeoids. Memetic Lexicon : http://pespmc1.vub.ac.be/MEMLEX.html -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
