Thanks, I'll give it a try.

On 5/17/05, Mosh Teitelbaum <[EMAIL PROTECTED]> wrote:
> Wayne:
> 
> I can't say that this is the problem, but your CFHTTP code is not passing
> any values from the Image form field.  Image form elements act as pseudo
> Submit buttons except that, instead of just passing back a single value (the
> value of the Submit button), they pass back the (x,y) coordinates of the
> location on the image that the user clicked.  Try adding the following 2
> lines of code between your CFHTTP tags:
> 
>         <cfhttpparam name="1234.x" type="FormField" value="0">
>         <cfhttpparam name="1234.y" type="FormField" value="0">
> 
> These will let the product.php page know that the user clicked on the image
> at coordinates (0,0).  Note that the name for each is "1234.x" and "1234.y".
> The "1234" part is because that is the name assigned to the Image in the
> form.  the ".x" and ".y" indicate the associated value's axis.
> 
> --
> Mosh Teitelbaum
> evoch, LLC
> Tel: (301) 942-5378
> Fax: (301) 933-3651
> Email: [EMAIL PROTECTED]
> WWW: http://www.evoch.com/
> 
> 
> > -----Original Message-----
> > From: Wayne Putterill [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 17, 2005 9:38 AM
> > To: CF-Talk
> > Subject: CFHTTP and forms
> >
> >
> > I'm trying to pull information from a legacy system using cfhttp, but
> > I have run into a problem with one page which is called using forms on
> > another page. The structure of the forms are like this:
> >
> > <FORM NAME="1234" METHOD="POST" ACTION="product.php">
> > <INPUT TYPE="IMAGE" SRC="images/product.jpg" NAME="1234">
> > <INPUT TYPE="HIDDEN" NAME="ID" VALUE="1916">
> > </FORM>
> >
> > and the code I'm using is basically this:
> >
> > <cftry>
> >       <cfhttp
> >       url="http://www.some company.co.uk/product.php"
> > method="post" resolveurl="yes"
> >       throwonerror="yes" charset="iso-8859-1">
> >       <cfhttpparam name="ID" type="FormField" value="1234">
> >       </cfhttp>
> >       <cfcatch type="Any">
> >               <cfset productinfo = "Unavailable">
> >       </cfcatch>
> > </cftry>
> >
> > Well as you may have guesses by now it's not working, I'm wondering if
> > I need to pass the form name as well but I can't work out how to do it
> > - can anyone help!
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206880
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to