melguin has asked for the wisdom of the Perl Monks concerning the following question:
Is that possible?
Here's my basic attempt that didn't work (test.pl):
#! /usr/bin/perl -w use strict; use CGI qw(param); #this has the head_foot() function require "templates/standard_templates.pl"; use vars qw($head $foot); my ($head,$foot) = head_foot(); if (param("page") eq "top") { page_top(); exit; } elsif (param("page") eq "bottom") { page_bottom(); exit; } else { page_main(); } sub page_main { print <<EOF; $head <frameset rows="25,*"> <frame src="test.pl?page=top" name="frametop"> <frame src="test.pl?page=bottom" name="framebottom"> </frameset> $foot EOF } sub page_top { print <<EOF; $head <h1>TOP OF THE PAGE</h1> $foot EOF } sub page_bottom { print <<EOF: $head; <h1>THIS IS THE BOTTOM</h1> $foot EOF }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is if possible to fill all framesets with the same CGI?
by dvergin (Monsignor) on Apr 24, 2001 at 02:52 UTC | |
by melguin (Pilgrim) on May 14, 2001 at 20:48 UTC | |
|
Re: Is if possible to fill all framesets with the same CGI?
by dws (Chancellor) on Apr 24, 2001 at 01:47 UTC |