>> 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.

I'll see if there are any javascript already available to do this. Or I
might just write a Perl script like the order page one I got.

>
>>
>> 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.
>

Well I am using a Red Hat Linux 7.3 running Apache server. Does this help
?Not sure sure what u mean by use a sniffer (please clarify). I just
printed out the %ENV hash, and saw no HTTP_REFERER there.


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to