Form / CGI error



Hi all,

I'm getting an error when I submit the following html
form to a CGI script. I'm too inexperienced to spot
the error. So, I'm looking for help from the list.
I've already made the changes as suggested from the
error log, but I get the same error again. Does anyone
have any suggestions for me?

TIA
Ron

-------------------------------snip-1-From the
Form------------------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>

<head>
<title>Form 4-21 Page</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" Cache-control: max-age=3 />
</head>

<script language="javascript">
function fname_focus() {
document.form4-21.fname.focus()
}
</script>

<body onload="javascript:fname_focus();">
<form name="form4-21" action="/cgi-bin/form4-21.cgi"
method="post">
First Name: <input type="text" name="fname"><br>
Last Name: <input type="text" name="lname"><br>
<br>
Favorite Color:<br>
<input type="radio" name="color"
value="red">Red<br>
<input type="radio" name="color"
value="blue">Blue<br>
<input type="radio" name="color"
value="green">Green<br>
<input type="radio" name="color"
value="yellow">Yellow<br>
<br>
Favorite Sport:<br>
<input type="checkbox" name="sports" value="hockey"
checked>Hockey<br>
<input type="checkbox" name="sports"
value="football">Football<br>
<input type="checkbox" name="sports"
value="baseball">Baseball<br>
<input type="checkbox" name="sports"
value="basketball">Basketball<br>
<input type="checkbox" name="sports"
value="golf">Golf<br>
<br>
<input type="submit" name="doit" value="send info">
</form>
</body>
</html>

-------------------------------snip----------------------------------

The following script is supposed to print out the
headings and values from the above form.

-------------------------------snip-2-From the CGI
script------------

#!/www/perl/bin/perl -wT

use strict;

use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
print header;
print CORE::dump(); # <=========== This line was
originaly: print dump();

-------------------------------snip-2--------------------------------

-------------------------------snip-3-From the
browser---------------

Internal Server Error

The server encountered an internal error or
misconfiguration and was unable to complete your
request.

Please contact the server administrator,
admin@localhost and inform them of the time the error
occurred, and anything you might have done that may
have caused the error.

More information about this error may be available in
the server error log.

Apache/2.0.52 (Win32) PHP/4.3.10 mod_perl/1.99_18
Perl/v5.8.6 Server at localhost Port 80

-------------------------------snip-3---------------------------------

-------------------------------snip-4-From the error
log--------------

[Wed Jul 06 18:23:56 2005] [error] [client 127.0.0.1]
Premature end of script headers: form4-21.cgi,
referer: http://localhost/form4-21.html

[Wed Jul 06 18:23:56 2005] [error] [client 127.0.0.1]
[Wed Jul 6 18:23:56 2005] form4-21.cgi: dump() better
written as CORE::dump() at C:/www/cgi-bin/form4-21.cgi
line 7., referer: http://localhost/form4-21.html

[Wed Jul 06 18:23:57 2005] [error] [client 127.0.0.1]
\r, referer: http://localhost/form4-21.html

[Wed Jul 06 18:23:57 2005] [error] [client 127.0.0.1]
This application has requested the Runtime to
terminate it in an unusual way., referer:
http://localhost/form4-21.html

[Wed Jul 06 18:23:57 2005] [error] [client 127.0.0.1]
Please contact the application's support team for more
information.\r, referer:
http://localhost/form4-21.html

-------------------------------snip-4----------------------------------

TIA
Ron
.



Relevant Pages

  • Re: Multidimensional array
    ... not a Perl or CGI.pm problem. ... Using single quotes 'Paul Schoen' causes the script to reply ... You must validate it *again* on the server. ... perhaps I can make the directory where the HTML form is located accessible only with a password. ...
    (comp.lang.perl.misc)
  • Re: Net::FTP problem
    ... >>> Then I created a cgi script, run the script manually on linux server, ... Read from the Net/FTP.pm, when you get the file, it would store the ...
    (comp.lang.perl.misc)
  • Re: Calling a perl script from an html doc
    ... How can I call a perl script from an html document when I have no web server ...
    (comp.lang.perl.misc)
  • Re: Hiding personal data in source code viewable on the internet
    ... > Re-create the form in pure HTML (do not use the FP Web components to ... In Script: grab the data submitted by the form. ... > I HTML view you enclose ASP script like this ... > component supported for your server. ...
    (microsoft.public.frontpage.programming)
  • Re: Hiding personal data in source code viewable on the internet
    ... >> Re-create the form in pure HTML (do not use the FP Web components to ... In Script: grab the data submitted by the form. ... >> component supported for your server. ... >> combination of HTML and ASP script. ...
    (microsoft.public.frontpage.programming)