i have a problem. handle.pl and html works fine bt from handle2.pl when i proceed to handle2.pl doesn't show data from handle.pl
<form method="post" action="handle.pl"> <td>firstname</td> <td><input type="text" name="first"></td> </tr><tr> <td>lastname</td> <td><input type="text" name="last"></td> </tr><tr> <td><input type="submit"></td> </table> </form> handle.pl use CGI; use strict; my $cg = CGI->new(); my $fname = $cg->param('first'); my $lname = $cg->param('last'); print "Content-Type: text/html\n\n"; print <<HTML; <p>firstname $fname</p> <p>lastname $lname</p> <p> <input type="submit" name="button" value="Submit"> </p> HTML handle2.pl use CGI; use strict; my $cg = CGI->new(); my $fn = $cg->param($fname); my $ln = $cg->param($lname); print "Content-Type: text/html\n\n"; print <<HTML; <p>firstname $fn</p> <p>lastname $ln</p> <p> <input type="submit" name="button" value="Submit"> </p> HTML
In reply to post and get problem by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |