Gossamer Forum
Home : General : Perl Programming :

templating

Quote Reply
templating
Hi All:

Is there a method to calling an outside html page such as LWP::UserAgent->new. However, I would like to embed the page called within my own web page. Is this possible.

Thanks...
Quote Reply
Re: [TheSafePick] templating In reply to
You mean like so?

Code:
get_page('http://www.site.com/somethging/page.html');

sub get_page {
use LWP::Simple;
my $url = $_[0];
return get($url);
}

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [TheSafePick] templating In reply to
Hi Andy:

Thanks a bunch worked on the first try.

Cool
Quote Reply
Re: [TheSafePick] templating In reply to
Bear in mind that if the call fails, you've have a borked page display.