Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hi, I am new to CGI an perl. I wrote the following code
When i execute the script from my shell it displays the following$Template = HTML::Template->new(filename => "user_login.html"); $Template->param(USER=>$usr); $Template->param(PASSWD=>$pwd); $final = $Template->output(); $q=CGI->new(); print $q->header(); print $q->start_html('user input'); print $q->h1($final); print $q->end_html();
But from the browser i get onlyWelcome akilesh you have logged in with password root<br>
The variables $usr and $pwd are not getting printed to the browser. What could cause this issue Please help me in thisWelcome you have logged in with password
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: CGI problem
by graff (Chancellor) on Nov 05, 2011 at 17:07 UTC | |
Re: CGI problem
by liverpole (Monsignor) on Nov 06, 2011 at 14:36 UTC | |
by Anonymous Monk on Nov 06, 2011 at 21:49 UTC | |
by Anonymous Monk on Nov 07, 2011 at 09:36 UTC | |
by Corion (Patriarch) on Nov 07, 2011 at 09:46 UTC | |
by Anonymous Monk on Nov 09, 2011 at 16:57 UTC | |
Re: CGI problem
by Anonymous Monk on Nov 06, 2011 at 04:54 UTC | |
by Anonymous Monk on Nov 06, 2011 at 05:04 UTC | |
Re: CGI problem
by Anonymous Monk on Nov 06, 2011 at 05:17 UTC |
Back to
Seekers of Perl Wisdom