lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev CGI POST parameters bugs


From: Klaus Weide
Subject: Re: lynx-dev CGI POST parameters bugs
Date: Thu, 15 Jul 1999 08:13:40 -0500 (CDT)

On Thu, 15 Jul 1999, CyberPsychotic wrote:
> #!/usr/bin/perl
> [ etc. ]

He wrote to me he was using 2.8rel2.

In other message,
> I ran : ./configure --enable-iternal-links, it didn't change

If you typed it like that, there is a typo in "iternal".
I think ./configure just ignores unrecognized --enable-'s.

Below is a slightly modified version that shows:
1.) a trick to avoid at least the unwanted POST resubmission
    but not "ending up at the wrong place" with lynx that is not
    internal-links enabled.  (use a #fragment in the href)
2.) a demonstration of difference between two kinds of links,
    what "internal links" is about (the second is "internal")

I assume that should be the same with 2.8, but am not sure.

---------- snip ---------
#!/usr/bin/perl
print <<__EOT__;
Content-type: text/html

<html><head><title>foo</title></head><body>
<PRE ID=foo>
Envinronment:
__EOT__

while (($key, $val) = each %ENV) {
        print "$key = $val<BR>\n";
}
print "Stdin\n";
print "$_\n" while(<STDIN>);
print <<__EOT__;
<hr> try to submit this form:
<form action=test method=post>
<input type=text name=foo value=bar>
<input type=hidden name=baz value=foo>
<input type=submit name=submit value=submit>
</form>
<hr>
<hr>
<a href="test#foo"> or just click the link</a> - with URL<br>
<a href="#foo"> or just click the link</a> - without URL
</body>
</html>
__EOT__




reply via email to

[Prev in Thread] Current Thread [Next in Thread]