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,
[EMAIL PROTECTED] 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

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to