Hi,
The easiest way, would be to "split" it at the ?, so anything after that doesn't get shown. Here's how you could do it:
trim_url_down
my $url = $_[0];
my @tmp = split /\?/, $url;
return $tmp[0];
}
Then just call with <%trim_url_down($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!
The easiest way, would be to "split" it at the ?, so anything after that doesn't get shown. Here's how you could do it:
trim_url_down
Code:
sub { my $url = $_[0];
my @tmp = split /\?/, $url;
return $tmp[0];
}
Then just call with <%trim_url_down($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!