Mirza,

I think you want to use a <cfinclude>

Here's an example ....

********Test.cfm********************
<cfparam name="id" default="123">
<cfset id = form.id>
<cfinclude template = "testaction.cfm">
</body>

Does this help you any?

- Jay Sudowski

*****
HANDY NETWORKS, LLC
4364 W. Point Loma Blvd., #G
San Diego, California 92107-1197
Tel.: 1-888-423-3932
Fax: 1-888-800-2FAX
http://www.HandyNetworks.com
ICQ 15601511  |  AIM Jay Suds
-----
NT Hosting  |  Web Design
Telecom  |  Connectivity
----- Original Message -----
From: mirza baig <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 27, 2000 5:38 PM
Subject: how to execute a file from within a file?


> Please see the code that says URL="TestAction.cfm", I
> am trying to call this file with <CFHTTP>
> ******************
> Hi List,
>
> Please help me. I am about to pull my hair. I don't
> get an error,but I do not get the desired output.
>
> I have the three files below, please let me know why
> the third file(testAction.cfm) never gets executed. I
> have put break points in the file and went into debug.
> The program never goes there at all.
>
> Also, for the purpose of printing the testAction.cfm
> in CFHTTP.FileContents is there a better way of having
> the testAction executed and I get the html of that
> file and my ultimate purpose is to send an email of
> the executed page as an attachment.
>
> Please let me know if you need any other information.
> Also
> let me know if I am on the wrong street?
>
>
> THanks.
> ********TestForm.cfm****************
>
> <body>
> <form action="test.cfm" method="post">
> <input type="text" name="id">
> <input type="submit" value="submit">
>
> </form>
>
>
> </body>
> ********Test.cfm********************
> <cfparam name="id" default="123">
> <cfset id = form.id>
>
>
> <cfhttp url="testAction.cfm"
>         method="POST"
>         resolveurl="true"
>         throwonerror="yes">
>
> <cfhttpparam type="FORMFIELD" name="id"
> value="#form.id#" >
>
> </cfhttp>
>
>
> <br>TESTING:<cfoutput>#CFHTTP.FileContent#</cfoutput><br><br><br><br>
>
> </body>
>
> ********TestAction.cfm**************
> <body>
>
> <h1>
> <cfparam name="id" default="222">
> <cfset id = form.id>
> <cfoutput>
> This is a test!<br><Br>
> Test is successful!<br>
> This is the id:#id#<br>
> </h1>
>
> </cfoutput>
> </body>
> ***************************************************
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to