It's probably a good idea to start with some small
CGI script examples to see how they work.
Google "perl CGI" and you will find some.
You will need an httpd server that you can practice with.
-----Original Message-----
From: Perl Perl [mailto:per...@gm...]
Sent: Tuesday, March 17, 2009 8:45 AM
To: ssh...@li...
Subject: [Ssh-sftp-perl-users] Perl Login Script using CGI module
Hi All,
I am trying to create the CGI login script which has to take parameters
like username and password ( username : ip address, password: *****).
And displays the page. Here I have to use CGI module with textfield.
To be honest I have not tried much on this, but simply I have embedded a
snippet of code from CGI module link as below.
#!/usr/local/bin/perl -w
use CGI ':standard';
$query = new CGI;
print textfield(-name=>'field_name',
-value=>'starting value',
-size=>50,
-maxlength=>80);
print password_field(-name=>'secret',
-value=>'starting value',
-size=>50,
-maxlength=>80);
It will be great if someone help to write the script.
--
Regards,
Mujju
|