xipotec: forum

Beitrag lesen

Hallo,

habe da ein kleines Problem, befasse mich grad das erste mal
mit CGI und habe versucht das in mein Kontaktformular einzubauen.

Leider bekomme ich immer nur die gleiche Fehlermeldung:

Fehler 501 ist aufgetreten :-( Filename: /kunden/usr/local/apache/share/cgi-bin/error501.0.html

das Kontaktformular:
<form action="kontakt.cgi" method="post" enctype="multipart/form-data" name="form" onsubmit="block(this);">

das CGI:
#!/usr/bin/perl
print "Conten-type: text/html\n\n";
print "<html><body>";
my %FORM;
&readForm;

print "Hallo $FORM{nachname}<p>";
print "Ihre Nachricht lautet: $FORM{nachricht}<p>";
print "</body></html>";

else
{
read (STDIN; $eingabe, $ENV{'CONTENT_LENGTH'});
}

@paare = split (/&/, $eingabe);
foreach $paar (@paare)

{

($schluessel, $wert) = split(/=/, $paar);
$wert =~ tr/+ / / ;
$wert =~ s/% ([a-fa-F0-9] [a-fA-F0-9])/pack("C", hex($1))/eg;
$FORM{$schluessel} = $wert;

}

hab ich mir irgendwo zusammengeschustert!?! Sollte nur ein Test sein.
Kann mir irgendwer weiterhelfen?