tom021
31-08-2003, 16:48
hi nochmal!
ich habe ein neues Problem. Betrachtet mal folgenden Quellcode.
Meine Frage ist wieso die Ausgabe im Opera korrekt , d.h. so wie eine html-seite, und im mozilla, firebird und internet explorer falsch ist, d.h. der code wird als quellcode (alle html tags werden angzeigt und alles ist unformatiert) dargestellt.
ich benutzte den apache 2 unter windows 2000.
#!c:/Perl/bin/Perl.exe -w
use strict;
print "Content-type: text/plain\n\n";
my @password = split(/=/, $ENV{QUERY_STRING});
if ($password[1] eq "testpasswort") {
print <<PASSWORD_OK;
<html><head><title>Confirmed</title></head><body>Richtiges Passwort</body></html>
PASSWORD_OK
}
else {
print <<PASSWORD_FALSE;
<html><head><title>FALSE</title></head><body>Flasches Passwort</body></html>
PASSWORD_FALSE
}
mfg
tom
ich habe ein neues Problem. Betrachtet mal folgenden Quellcode.
Meine Frage ist wieso die Ausgabe im Opera korrekt , d.h. so wie eine html-seite, und im mozilla, firebird und internet explorer falsch ist, d.h. der code wird als quellcode (alle html tags werden angzeigt und alles ist unformatiert) dargestellt.
ich benutzte den apache 2 unter windows 2000.
#!c:/Perl/bin/Perl.exe -w
use strict;
print "Content-type: text/plain\n\n";
my @password = split(/=/, $ENV{QUERY_STRING});
if ($password[1] eq "testpasswort") {
print <<PASSWORD_OK;
<html><head><title>Confirmed</title></head><body>Richtiges Passwort</body></html>
PASSWORD_OK
}
else {
print <<PASSWORD_FALSE;
<html><head><title>FALSE</title></head><body>Flasches Passwort</body></html>
PASSWORD_FALSE
}
mfg
tom