On Thu, Mar 01, 2007 at 01:16:51PM -0500, DB wrote:
> I see from the docs how to use
> [area href="foo" arg="bar"]
>
> to generate a URL such as
> http://www.example.com/foo.html?id=6CZ2whqo&mv_arg=bar
>
> Can anyone dream up a rewite rule that would change
> http://www.example.com/foo.html?id=6CZ2whqo&mv_arg=bar
>
> into
> http://www.example.com/bar.html
>
Rewriting is one way, another is Interchange ActionMaps:
http://www.icdevgroup.org/xmldocs/glossary/index.html#ActionMap
http://www.icdevgroup.org/xmldocs/confs/ActionMap.html
So, a good start for you would be:
ActionMap foo <<EOS
sub {
if ( $CGI->{mv_arg} ) {
.....
}
}
EOS
Then, accessing page 'foo' would run the associated subroutine.
-doc
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.