Please try this -

<cfhttp url="#urladdress#" method="GET" resolveurl="Yes"
throwOnError="Yes"/>
<!----To test what you retrieve when you invoke the above HTTP call---->
<CFOUTPUT>
#cfhttp.filecontent#<BR>
</cfoutput>
<cfset strAck= cfhttp.filecontent>
<CFIF strAck EQ "ACK">
        <cflocation url=" http://www.mydomain.com/success.cfm ">
<CFELSE>
        <cflocation url=" http://www.mydomain.com/error.cfm ">
</CFIF>


-----Original Message-----
From: Knut Bewersdorff [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 01, 2006 9:25 PM
To: CF-Newbie
Subject: PHP to CFML - Problems

Hi all,

I have a very short, working PHP-Script, which I need to have translatet
to CFML (ColdFusion MX 7.0.1).

The Script is used for a transaction result (via a "Response URL"),
after sending a form with a couple of Data via <cfhttp>.

Can anyone help me please, I'm a newbie ???!!!

PHP-Script:

<?
// Waiting for a transaction result 
$returnvalue=$_POST['PROCESSING_RESULT'];
if ($returnvalue)
{
  if (strstr($returnvalue,"ACK"))
  {
    // URL after successful transacvtion
    print "http://www.mydomain.com/success.cfm";;
  }
  else
  {
    // URL error in transaction
    print "http://www.mydomain.com/error.cfm";;
  }
}
?>

-----------------------------------------------------------

I've tried this CFML-Script, but it does not work:

<!--- Listener script --->
<cfsetting enablecfoutputonly="Yes">
<CFIF PROCESSING.RESULT EQ "ACK">
   http://www.mydomain.com/success.cfm
<CFELSE>
   http://www.mydomain.com/error.cfm
</CFIF>
</cfsetting>

Thanks for your help.
Cowboy




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2024
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to