Skip to main content
Inspiring
July 5, 2010
Question

not receiving form.submit from IE7 via post method ?

  • July 5, 2010
  • 2 replies
  • 913 views

A cfform is submitting its data to a receiving page via post method

If I use a submit button, of type="submit" I can see it in the cfdump #form#

If I use a submit button of type "image", I can see submit.x and submit.y in the cfdump #form#

Is this normal behaviour ?

To summarise, I'm trying to detect if user has clicked the submit button, type="image" but <cfif isdefined (form,"submit") isn't finding anything.

NB: Google Chrome and Firefox has no problem at all, just IE7.

This topic has been closed for replies.

2 replies

Sreeindia
Participating Frequently
July 9, 2010

Hi Dax

Try like this

<cfform method="post" name="checksubmit">
    <input type="image" id="imgBtn" name="imgBtn">
</cfform>


<cfif isdefined("imgBtn.x")>
How are u
</cfif>

may be this will help . please let me know

Inspiring
July 5, 2010

Again: try some reading:

http://www.w3.org/TR/html401/interact/forms.html#input-control-types

This is normal behaviour for an image control.

--
Adam