[pmwiki-users] How do I get $EditRedirectFmt also return Page Text Variables?

Dave smartucus86 at yahoo.com
Sat Apr 16 19:04:02 CDT 2011

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-
When I SAVE the form I get:
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
From: Peter Bowers <pbowers at pobox.com>
To: Dave <smartucus86 at yahoo.com>
Cc: "pmwiki-users at pmichaud.com" <pmwiki-users at pmichaud.com>
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 <smartucus86 at yahoo.com> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20110416/129ee968/attachment.html>

More information about the pmwiki-users mailing list