Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with cfhttp

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
US
ok, it's my turn.

the idea is to submit bunch of form parameters to a url. the user verifies the input and hits submit. by the way, it's for outside payment processing.

if i do
<cflocation url="
then i see the form with test entered into the first name field.

however, if i do

<cfhttp method="Post"
url=" resolveurl="no" >

<cfhttpparam type="Formfield"
value="test"
name="firstName">

</cfhttp>

all i see is a blank page. what am i doing wrong here?
thanks in advance.



 
CFHTTP doesn't go to a page in the browser. It makes a call to the page, but the page return is not rendered like a simple GET or POST. Look at the CFHTTP.FileContent variable; it has the returned results.

HTH,

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Not NULL-terminated yet.
 
thanks for the response. when i dump the cfhttp, i get an invalid request for the FileContent.


i also tried

cfhttp method="get" url="..." resolveurl="no"
with
cfhttpparam type="url" name... value...

i ended up getting their page's html code. when i try htmlCodeFormat(cfhttp.FileContent), i still get bunch of html text on the page.

i am not sure if it's something i am doing wrong at this point.


 
What are you trying to accomplish? Do you want to show their page? Do you want to test for the success of the post?



Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Not NULL-terminated yet.
 
this is my link


all i am trying to do is pre populate some of the fields. there is a registration form that user fills prior to this form. afterwards, s/he goes to the above link to make a payment.

so, if i add stuff to the url like

&firstName=test&lastName=test and so on, you will see that they will show up on that form. there is a limitation of 255 chars (ie6) that i can pass on the url. since i collect all the information on my site except the payment stuff, how do i populate all the fields without passing them on the url?
thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top