
December 17th, 1999, 06:57 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Make a real simple perl script, and post the information to the script. Place the HTML for the second page in the script and display said information with a variable.
Here is the code that you would need to do that. Post variable1 and variable2, then place $varable1 and $variable2 in the html for the second page:
#!/usr/bin/perl
print "Content-type: text/htmlnn";
&form_parse;
$variable1=$form('variable1');
$variable2=$form('variable2');
print <<endhtml
#put html in here
endhtml
sub form_parse {
read (STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
@pairs = split(/&/, $buffer);
foreach $pair (@pairs)
{
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$FORM{$name} = $value;
}}
|