
wickedxter
User
Mar 17, 2012, 3:23 PM
Post #2 of 3
(836 views)
|
to use the CGI module your talking about...
use strict; use warnings; use CGI; #delcare in the top of your script if your useing forms with the script just point the form to the script location
<form action="./login.pl?login" method="post"> </form> then in your script you need to write some URL matching locations .
my $cgi = new CGI; if($cgi->param('login')){ #do something with the form data posted to login.pl?login } form data is accessed using the param method param('username'); look here for more info..... http://perldoc.perl.org/CGI.html
(This post was edited by wickedxter on Mar 17, 2012, 3:24 PM)
|