in reply to my code does not work
Welcome to the Monastery.... and it is a cheerful welcome because your post is far from the worst-formatted, -phrased, or -titled of even the past few minutes ... so please accept these suggestions as "constructive."
Formatting?
Read Markup in the Monastery and Perl Monks Approved HTML tags.
One (well, ok, "/me") guesses you meant:
!/usr/bin/perl #looks like you forgot three lines use strict; use warnings; use CGI; # Though not used below, this could make your work easier print <<endHtml; Content-type: text/html\n\n <html><head><title>"Thank You Form</title</head><body> Thanks endHtml if ($ENV{'REQUEST_METHOD'} eq 'POST'){ open (FL, 'feedback.cgi','+>>') || die ("Hello"); read(STDIN,$buffer,$ENV{'CONTENT_LENGTH'}); print FL "$buffer"; print "$ENV{CONTENT_LENGTH}"; } print "</body></html>";
As to "The line print FL "$buffer"; does not work I cannot get the information into the file feedback.cgi," you'll get kinder and gentler (and often, "useful") replies if you tell us in somewhat greater detail how it "does not work" -- as, for example "the error message you receive (if any)" and what errors you find in your server's log file (again, if any).
So, here's another candidate for your reading pleasure.
IIRC, that will lead you to a note on the subject of titles: loosely, "make your title describe your problem with specificity."
|
|---|