Mr.Dan,<br>This was the method I required.  I used this method and now my application is running properly. Thank you very much for your help.<br><br clear="all">Thanks<br>Gayani Edirisinghe<input type="hidden"><input type="hidden"><div>
</div><input type="hidden"><input type="hidden"><div></div><br>
<br><br><div class="gmail_quote">On Tue, Oct 25, 2011 at 6:50 PM, Dan Little [via Geomoose-users] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=3456803&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">

        No, the mapbook should not be dynamic.  It&#39;s a configuration file and there are plenty of options in the runtime environment to perform dynamic operations.
<br><br>I still really don&#39;t know what you&#39;re trying to do.  But assuming you have two known PHP scripts, and you&#39;re trying to share data between them, and assuming you&#39;re using GeoMOOSE 2.2/2.4 the following should work.  I haven&#39;t debugged or tested any of this code.  I just started typing and copied some of the code from the demo.  
<br><br>In the mapbook:
<br><br>&lt;service name=&quot;service_a&quot; title=&quot;Service A&quot;&gt;
<br> &lt;url&gt;myphp/service_a.php&lt;/url&gt;
<br> &lt;input type=&quot;user&quot; name=&quot;input_a&quot; title=&quot;An input from the user:&quot;/&gt;
<br>&lt;/service&gt;
<br><br>&lt;service name=&quot;service_b&quot; title=&quot;Service B&quot;&gt;
<br> &lt;url&gt;myphp/service_b.php&lt;/url&gt;
<br> &lt;input type=&quot;hidden&quot; name=&quot;input_b&quot;/&gt; &lt;!-- hidden input that will be set to input_a --&gt;
<br>&lt;/service&gt;
<br><br>Later in the catalog:
<br>&lt;tool name=&quot;call_service_a&quot; title=&quot;Service A&quot; type=&quot;service&quot; service=&quot;service_a&quot; selectable=&quot;false&quot;/&gt;
<br><br>The PHP:
<br><br>myphp/service_a.php
<br>&lt;?php
<br>header(&#39;Content-type: text/xml&#39;);
<br><br>print &quot;&lt;results&gt;&quot;;
<br>print &quot;&lt;html&gt;&lt;![CDATA[&quot;;
<br>print &quot;&lt;a href=\&quot;javascript:GeoMOOSE.startService(&#39;service_b&#39;, {input_b: &#39;&quot;. $_GET[&#39;input_a&#39;].&quot;&#39;]})\&quot;&gt;Show Service B&lt;/a&gt;&quot;;print &quot;]]&gt;&lt;/html&gt;&lt;/results&gt;&quot;;
<br>?&gt;
<br><br>myphp/service_b.php
<br><br>&lt;?php
<br>header(&#39;Content-type: text/xml&#39;);
<br>print &quot;&lt;results&gt;&quot;;
<br>print &quot;&lt;html&gt;&lt;![CDATA[&quot;;
<br>print $_GET[&#39;input_b&#39;];
<br>print &quot;]]&gt;&lt;/html&gt;&lt;/results&gt;&quot;;
<br>?&gt;
<br><br><br></div></div><div><br>&gt;________________________________
<br><div class="im">&gt;From: gayani &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=3451344&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;
<br>&gt;To: <a href="http://user/SendEmail.jtp?type=node&amp;node=3451344&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br></div><div class="im">&gt;Sent: Monday, October 24, 2011 10:10 PM
<br>&gt;Subject: [Geomoose-users] Re: Refresh Mapbook
<br>&gt;
<br></div><div class="im">&gt;Hi,
<div class='shrinkable-quote'><br>&gt;Can&#39;t we do it dynamic.
<br>&gt;
<br>&gt;I need to pass a variable from one php file to another PHP file through map
<br>&gt;service. That&#39;s why I an tring to make dynamic the Mapbook.
<br>&gt;
<br>&gt;Please help me to solve this problem.  (pass the variable within two PHP
<br>&gt;files)
<br>&gt;
<br>&gt;Thanks
<br>&gt;Gayani
<br>&gt;
</div></div><div class="im">&gt;--
<br>&gt;View this message in context: <a href="http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3450274.html" rel="nofollow" link="external" target="_blank">http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3450274.html</a><br>
&gt;Sent from the Geomoose-users mailing list archive at Nabble.com.
<br>&gt;_______________________________________________
<br>&gt;Geomoose-users mailing list
<br></div>&gt;<a href="http://user/SendEmail.jtp?type=node&amp;node=3451344&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>&gt;<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>&gt;
<br>&gt;
<br>&gt;
</div><div class="im">_______________________________________________
<br>Geomoose-users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=3451344&amp;i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
        
        <br>
        <br>
        </div><hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3451344.html" target="_blank" rel="nofollow" link="external">http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3451344.html</a>
        </div><div><div></div><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                
                To unsubscribe from Refresh Mapbook, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.
        </div></div></div></blockquote></div><br>

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://geomoose-users.964460.n3.nabble.com/Refresh-Mapbook-tp3450108p3456803.html">Re: [Geomoose-users] Re: Refresh Mapbook</a><br/>
Sent from the <a href="http://geomoose-users.964460.n3.nabble.com/">Geomoose-users mailing list archive</a> at Nabble.com.<br/>