You are here:

Perl & CGI/Testing HTML forms with cgi on Windows

Advertisement


Question
I need to test out a HTML form which has a cgi script to it on my Windows PC.

I tested the cgi out on command line and no error was returned.

However, when I tested out the HTML form on browser and click the Submit button, instead of displaying the intended HTML response, it simply displays the cgi contents.

May I know if there's something I'm doing wrong or am I not allowed to test forms on Windows?

Answer
Hi Filzah,

You'll need to run an actual webserver to run the CGI.  If it's a Perl scripts, you'll need to download a perl interpreter for windows.

Apache is open source and free, so you could install that in Windows and use it as your test server.

Justin

Perl & CGI

All Answers


Answers by Expert:


Ask Experts

Volunteer


Justin Wheeler

Expertise

Any question relating to Perl including its internals, data structures, speed, memory usage, syntax, version changes, extra CPAN modules, code standards, code cleanup, or just silly problems.

Experience

I have been writing Perl code professionally for almost 10 years. I have modules on CPAN, have Perl code that's included in the latest versions of Redhat, Debian, etc. I have done professional Perl work for many household names including Ticketmaster, Interflora, and allbookstores.com.

Education/Credentials
Only work experience and a love of all things Perl.

©2012 About.com, a part of The New York Times Company. All rights reserved.