[ic] form in area tag, good except

Mike Heins interchange-users@interchange.redhat.com
Thu Jun 6 23:10:01 2002


Quoting Paul Jordan (paul@gishnetwork.com):
> Hi
> 
> I am trying to get a variable to toggle based on user click. This variable
> is on every page of the site.
> 
> 
> I have
> 
[snip old]
> This works fine on every page tested so far except a flypage. Basically,
> "smode" can be toggled to sim => simple mode or adv => advanced mode.
> 

Try:

[set searchset]
 [seti smode][cgi smode][/seti]
[/set]

 [calc]
	$Scratch->{page_arg} = q{[item-code]};
	if ($Scratch->{page_arg} =~ /^\[item-/) {
		$Scratch->{page_arg} = q{@@MV_PAGE@@};
	}
	return;
 [/calc]

<br>
 <A HREF="[area
			href="[scratch page_arg]"
			form="
				mv_click=searchset
				mv_action=return
				smode=adv
			"
	  ]">switch to advanced mode</a>

<br>
 <A HREF="[area
			href="[scratch page_arg]"
	        form="
				mv_click=searchset
				mv_action=return
			"
	  ]">switch to basic mode</a>
<br>
<br>

  scratch smode=[scratch smode]
  <br>
  cgi smode=[cgi smode]

-- 
Mike Heins

This was a free consulting factoid brought to you by....
Perusion -- Expert Interchange Consulting
phone +1.513.523.7621      <mike@perusion.com>

Fast, reliable, cheap.  Pick two and we'll talk.  -- unknown