bigup401 has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: post and get problem
by Anonymous Monk on Nov 21, 2014 at 21:16 UTC | |
by bigup401 (Pilgrim) on Nov 22, 2014 at 05:56 UTC | |
by Corion (Patriarch) on Nov 22, 2014 at 07:49 UTC | |
| |
by Anonymous Monk on Nov 22, 2014 at 10:24 UTC |