[thelist] CF: CFHHTP Problem
.jeff
jeff at members.evolt.org
Thu Jan 17 16:23:29 CST 2002
frank,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Frank
>
> Can someone help me out with this? I'm using CFHTTP to
> call upon a script, and for some reason, the variable
> doesn't seem to get passed. Here's what I've got. (This
> document reloads onto itself...)
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
sounds like you're inviting potential infinite loops over for dinner.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> <!--- Redirect the user --->
> <cfhttp url="test.cfm" method="POST">
> <cfhhpparam type="formfield"
> name="Fuseaction" value="Shipping">
> </cfhttp>
>
> <!--- Display the variable --->
> <cfoutput>
> The variable is: #Form.Fuseaction#
> </cfoutput>
>
> This *will* redirect the user, but it fails to pass the
> variable to the next template.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
i think you may be confused by what <cfhttp> actually does. it doesn't
perform a redirect. it makes an http call to the url you specify and
returns the results of that request into a variable (or query) to use on the
page. pass a random url name/value pair in the <cfhttp> call. notice the
url in your browser window doesn't change? that's because you're not
getting redirected. notice you don't see the results of the <cfhttp> unless
you output the variable it's contained in? setting something up to <cfhttp>
to itself is a recipe for disaster as you can cause an infinite loop.
btw, i meant to comment on your cflocation vs. cfhttp tip the other day, but
forgot. maybe i can find it again and respond now that it's fresh in my
mind.
does this help or hinder?
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list