That error means the script exited before it could print out the Content-type header. If you add use warnings and use strict to your script, the reason will probably show up in your log file. Running the script from the command line may also reveal it.
Incidentally, if this is an exercise in learning how the CGI interface works, that's fine. But if it's an attempt to begin doing practical work, look into the CGI module. Your form_parse routine is lacking in a variety of ways (for instance, a semicolon is a valid separator in place of the ampersand, and they could also be encoded in a couple different ways). It's pretty complicated to write a CGI argument parser that handles all valid URI formats correctly and securely, which is why CGI.pm exists. Some modules are mostly a convenience or a typing-saver, but others are simply necessary for certain work, and I'd put CGI.pm (or one of its descendants, including the many frameworks) in the latter category.
In reply to Re: Help!! Premature ending of script headers?
by aaron_baugher
in thread Help!! Premature ending of script headers?
by girl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |