0 Пользователей и 1 Гость просматривают эту тему.
1)index.html: type="button" value="Click me!" onclick="javascript:doHTTPQuery(\'POST\', true, \'http://127.0.0.1/cgi-bin/test.cgi\', function() {}, \'name=Тест\')" />
#!/usr/bin/perl -wuse CGI qw(:standart);my $query = CGI->new();my $text = $query->param(\'name\');print $query->header(-type => \'text/html\', -charset => \'KOI8-R\');open(F, ">TEST.TXT");print F $text;close(F);