I have a little CGI program I want to test on my local host.
So I put the cgi file in my "cgi-bin" directory and I use a simple HTML form to call the cgi script.
Now when I open the HTML page, it has a "submit" button and when the button is pressed, it will call the cgi script.
However, when I click on the button, the cgi script does not execute.
Instead it will show the cgi file in text format.
What am I doing wrong?
p.s. I'm in windows environment, and as far as I can tell I checked all the box to allow read/write/execute.
So I put the cgi file in my "cgi-bin" directory and I use a simple HTML form to call the cgi script.
Now when I open the HTML page, it has a "submit" button and when the button is pressed, it will call the cgi script.
However, when I click on the button, the cgi script does not execute.
Instead it will show the cgi file in text format.
What am I doing wrong?
p.s. I'm in windows environment, and as far as I can tell I checked all the box to allow read/write/execute.