in reply to Script executing on client, not server

If you save the file and look at it with your text editor, do you see your perl code or the html output?

If it's the perl code, it sounds like the web server isn't configured to treat .pl files as CGI scripts. In addition to making sure the file has execute permissions for the web server, try renaming it to form.cgi or editing the server's configuration.

If it's the html output, maybe your script isn't output a proper header. (Content-type and double \n at the end.)

  • Comment on Re: Script executing on client, not server

Replies are listed 'Best First'.
Re^2: Script executing on client, not server
by Anonymous Monk on Aug 11, 2004 at 16:04 UTC
    When I choose the PERL file and 'open with' Notepad, I see the code. When I open up the HTML file that has the form that calls the PERL, I see pure HTML. Is this what you were asking?

    I have changed the file extension to cgi. Now, instead of getting a prompt to download the file, what happens is that the browser opens up the cgi file and displays its code in the browser window. Strange....

      It's definitely a server configuration issue or a permissions problem. I can't help you there.