Date:  09/05/2003 04:29:52 PM Msg ID:  001613
From:  FoxWeb Support Thread:  001612
Subject:  Re: server.execute
The Server.Execute method is equivalent to the DO command for calling for calling FWX scripts from other PRG, or FWX scripts.  It is exactly equivalent to Server.Compile, followind by a DO command.  Unlike Response.Transfer, it does not cause a round-trip to the browser and as a result, it does not allow you to include a query string.
The script being called will maintain the original query string passed by the browser.  If you want to pass parameters to the script, simply add them as arguments to the execute method:
 
<%
i="whatever"
Server.Execute("myprog.fwx", i)
%>
 
You can then add a PARAMETERS statement to myprog.fwx to collect arguments:
 
<%
PARAMETERS i
IF PCOUNT() = 0
    * script was called directly by the browser
    i = Request.QueryString("i")
ELSE
    * Script was called by another script, using Server.Execute
    * Variable 'i' is already populated via the PARAMETERS statement
ENDIF
... (rest of your code)
%>

FoxWeb Support Team
support@foxweb.com email

Sent by Ramon on 09/05/2003 12:44:16 PM:
when i try to do this:
 
<%
i = "whatever"
server.execute("myprog.fwx?passme="+i)
%>
 
does not work. i even try doing this:
 
i = "whatever"
cURL = "myprog.fwx?passme="+i
server.execute(cURL)
%>
 
still does not work. any help?