<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">Thanks Peter,</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">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.</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">The output sequence displayed is (this is on my EditForm page):</SPAN></div><SPAN style="RIGHT: auto">
<div style="RIGHT: auto">   1-<BR>   3-<BR>   2-RMS</div>
<div style="RIGHT: auto">When I SAVE the form I get:</div>
<div style="RIGHT: auto">   1-<BR>   3-<BR>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.</div></SPAN>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">SDV($CompSName, 0);<BR>     Markup('CompSName','<{$var}','/\\(:CompSName: (<A href="file://\\w">\\w</A>+) :\\)/e','CSName("$1")');<BR>     <BR>     echo "1-".$_SESSION['foo']."<br>";<SPAN class=tab>     </SPAN><SPAN class=tab>     </SPAN>//output = "1-" - expected output BEFORE EDIT>SAVE<BR>     <BR>     function CSName ($val) {<BR>      $_SESSION['foo'] = $val;<BR>      echo "2-".$_SESSION['foo']."<br>";<SPAN class=tab>     </SPAN><SPAN style="RIGHT: auto" class=tab>    //output = "2-RMS" - expected output</SPAN></SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"><SPAN style="RIGHT: auto" class=tab></SPAN>     }<BR></div></SPAN>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">     echo "3-".$_SESSION['foo']."<br>";<BR>     #echo " #B-".$CompSName;                     //output = "3-" - expected output BEFORE EDIT>SAVE</SPAN></div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">Help!</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">Dave<VAR id=yui-ie-cursor></VAR></div>
<div style="RIGHT: auto"> </div>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Peter Bowers <pbowers@pobox.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Dave <smartucus86@yahoo.com><BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> "pmwiki-users@pmichaud.com" <pmwiki-users@pmichaud.com><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, April 15, 2011 11:05 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [pmwiki-users] How do I get $EditRedirectFmt also return Page Text Variables?<BR></FONT><BR>On Sat, Apr 16, 2011 at 1:54 AM, Dave <<A href="mailto:smartucus86@yahoo.com"
 ymailto="mailto:smartucus86@yahoo.com">smartucus86@yahoo.com</A>> wrote:<BR>> Is there a way to get a value back from the EditForm to the redirected page?<BR><BR>I think $_SESSION is what you are looking for.<BR><BR>-Peter<BR><BR><BR></DIV></DIV></div></body></html>