[ic] Follow up to FormAction question
Mike Heins
mikeh@minivend.com
Mon, 11 Sep 2000 20:10:37 -0400
Quoting Randy Moore (ramoore@axion-it.net):
> This very simple example (taken mostly from the docs) does not properly set
> the nextpage:
>
> FormAction item_profile <<EOR
> sub {
> $CGI->{mv_nextpage} = 'index';
> return(1);
> }
> EOR
>
You found a bug, thank you! Here is a patch against scripts/minivend.PL (you can
easily apply it by hand.)
*** interchange-4.5.5/scripts/minivend.PL Sun Aug 6 16:05:39 2000
--- interchange-4.5.5tmp/scripts/minivend.PL Mon Sep 11 20:08:19 2000
***************
*** 1834,1839 ****
--- 1834,1840 ----
if ! defined $CGI::values{mv_nextpage};
}
elsif ( defined ($sub = $action{$Vend::Action}) ) {
+ Vend::Interpolate::init_calc();
$Vend::FinalPath = join "", @path;
}
The $CGI was not getting connected with \%CGI::values.
Now you should be able to test the above with:
[page form="mv_todo=item_profile"] Test it [/test]
--
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.8220 fax 7501 <heins@akopia.com>
If you like what you're gettin', keep doin' what you're doin'. -- Hector