i have try from john lee mail. but i got problem
the message syntax error at ./test.pl line 2, near "use
CGI."
Execution of ./test.pl aborted due to compilation errors.

this mainPage (include form and variable)

#!/usr/bin/perl -w

print "Content-type: text/html\n\n";

print "<html>

<head>
<meta http-equi<title>New Page 1</title>
</head>

<body>

<form method=\"POST\" action=\"test.pl\">

  <p><input type=\"text\" name=\"id\" size=\"20\"></p>
  <p><input type=\"submit\" value=\"Submit\"
name=\"B1\"></p>
</form>

----------------------------------------------------------
this nextPage.pl
#!/usr/bin/perl -w
use CGI.pm

$rCGI = new CGI;
$id =  $rCGI->param('id');

print "Content-type: text/html\n\n";

print $id;
if ($id==1){
        print "satu";
    }else{
        print "Bukan satu";
}


maybe there's mistake on my programs.
thank you

Reply via email to