[ic] Any way to get referring page?

Paul Jordan interchange-users@interchange.redhat.com
Wed May 8 16:02:00 2002


> I have a page that is called from several other
> pages via a link and I want the new page to
> be able to generate a link back to the referring
> page. There is probably a simple way to 
> accomplish this but I can't see it.
> 
> The referring page creates a link like:
> [set SetPage]
> [perl]
> $Scratch->{mynextpage} = "status";
> return '';
> [/perl]
> [/set]
> 
> [page form="mv_nextpage=selectjob
>     mv_click=SetPage
>     mv_action=process
>     mv_todo=return"] Select a different job? </A>
> 
> The selectjob.html page that I want to creates
> a link back via:
> 
> [page form="mv_nextpage=[scratchd mynextpage]
>      mv_action=process
>      mv_todo=return"]
> 
> I CAN see that [page] doesn't interpolate
> [scratchd mynextpage].
> 
> Any hints?
> Thanks.
> 

Off the top of my head, you could probably set two scratch variables.

[tmp lastpage][scratchd thispage][/tmp]
[set thispage]@@MV_PAGE@@[/set]

Then you could call last page by [area [value lastpage]]

Untested ofcourse.

Also, take a look at Ed Lafrances [ENV] tag.


Paul