PDA

View Full Version : Complete newbie to CGI/Perl learning from a(n old) book


shmigheghi
03-15-2002, 11:39 PM
#!/usr/bin/perl --

use CGI qw/:standard/;

$stuff = param('realname1');

print "
<html>
<head>
<title>Stuff</title>
</head>
<body>
<h3>
$stuff

</h3>
</body>
</html>
";

Which sends the value in a form box named 'realname1' to a new page which is what loads when you click the button. That works.

My question is, how do I make the HTML in the print print out on a completely seperate page that isn't the page that shows up by clicking the submit button? Also, how do I choose which page to redirect to once someone clicks the button.

Thanks.