in reply to Simple CGI Login
if ($user) { $cgi->start_html; print "Content-Type: text/html\n\n"; print "well HELLO"; $cgi->end_html; } else { $cgi->start_html; print "Content-Type: text/html\n\n", $template->output; $cgi->end_html; }
I'd be looking to change that to something like this:
Printing the content type is handled by the "header" method of the CGI object.if ($user) { print $cgi->header,$cgi->start_html,"Hi there!", $cgi->end_html; } else { print $cgi->header,$cgi->start_html, $template->output,$cgi->end_html; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple CGI Login
by Xidus (Novice) on Aug 31, 2006 at 00:02 UTC | |
by blue_cowdawg (Monsignor) on Aug 31, 2006 at 00:06 UTC | |
by Xidus (Novice) on Aug 31, 2006 at 00:15 UTC |