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");
In reply to Perl/CGI redirect. by DigitalKitty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |