|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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; }} |
|
#2
|
|||
|
|||
|
What post was this answer about? You might want to post a reply in the original thread to let people know that the answer is here.
Pat Ricard The Online Advertising Space Directory - Let advertisers know that you are looking for sponsors for your site http://www.1001mediakits.com |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > use perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|