DigitalKitty has asked for the wisdom of the Perl Monks concerning the following question:
The login.html form is in the apache htdocs folder and the perl script is in cgi-bin.Since I am still learning the nuances of writing CGI scripts, I am slightly puzzled as to why the browser does not display the login.html page if I don't insert into the Name field. I can only assume I need to to modify my httpd.conf file ( Apache 1.3.20 ) to handle both HTML and CGI based applications? If so, any help in doing so would be most appreciated. The text I am using to learn CGI isn't particularly good. ( i.e. many demos, few explanations ).#!C:\perl\perl.exe -wT use strict; use CGI qw( :standard ); use CGI::Carp qw( fatalsToBrowser ); print "Content-type: text/html\n\n"; my $Name = param("Name"); my $Password = param("Password"); redirect("/login.html") unless param("Name");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl/CGI redirect.
by Zaxo (Archbishop) on May 20, 2002 at 06:23 UTC | |
|
Re: Perl/CGI redirect.
by Dog and Pony (Priest) on May 20, 2002 at 10:15 UTC | |
|
Re: Perl/CGI redirect.
by DigitalKitty (Parson) on May 20, 2002 at 13:27 UTC | |
|
Re: Perl/CGI redirect.
by kodo (Hermit) on May 20, 2002 at 09:34 UTC | |
by merlyn (Sage) on May 20, 2002 at 12:57 UTC | |
by kodo (Hermit) on May 20, 2002 at 17:14 UTC | |
by merlyn (Sage) on May 20, 2002 at 20:24 UTC |