Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to use information gathered from a form to generate personalized Web pages.
When I submit the form, rather than being taken to the page generating script,
my browser displays the code for the script that's supposed to process the form data.
When I try to access the page generating script directly, I get an error message:
"Your script produced this error: (Maybe you didn't strip carriage returns after a network transfer?)"

I'm using the "get" method because my host doesn't allow the "post" method. The URL for the form is:
http://existentialxmas.tripod.com/formGet.html.
The URL for the page generating script is:
http://existentialxmas.tripod.com/cgi-bin/HTML.cgi

  • Comment on Wrong page displays after form is submitted

Replies are listed 'Best First'.
Re: Wrong page displays after form is submitted
by fglock (Vicar) on Aug 06, 2002 at 19:28 UTC

    If you are using a FTP program to transfer the program to the server, try changing to "ascii" mode before the transfer.

    When using "binary" ftp mode from Windows, the file will not get "carriage returns" stripped and might not work in a *nix server