Thanks Peter,
But that won't do the trick. The variable gets changed in the function but
somewhere in the process the value is returned to it's prefunction state.
The output sequence displayed is (this is on my EditForm page): 1-
3-
2-RMS
When I SAVE the form I get:
1-
3-
At this point I expected #1 & #3 to display the most recent value "RMS" - it's
as if what happens in the function when Markup calls it is isolated to the
function.
SDV($CompSName, 0);
Markup('CompSName','<{$var}','/\\(:CompSName: (\\w+)
:\\)/e','CSName("$1")');
echo "1-".$_SESSION['foo']."<br>"; //output = "1-" - expected
output BEFORE EDIT>SAVE
function CSName ($val) {
$_SESSION['foo'] = $val;
echo "2-".$_SESSION['foo']."<br>"; //output = "2-RMS" - expected
output
}
echo "3-".$_SESSION['foo']."<br>";
#echo " #B-".$CompSName; //output = "3-" - expected
output BEFORE EDIT>SAVE
Help!
Dave
From: Peter Bowers <[email protected]>
To: Dave <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Friday, April 15, 2011 11:05 PM
Subject: Re: [pmwiki-users] How do I get $EditRedirectFmt also return Page Text
Variables?
On Sat, Apr 16, 2011 at 1:54 AM, Dave <[email protected]> wrote:
> Is there a way to get a value back from the EditForm to the redirected page?
I think $_SESSION is what you are looking for.
-Peter
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users