There is always...
<cfif cgi.request_method is "post">
<!--- test for different submit buttons here, if needed --->
</cfif>
-- Josh
----- Original Message -----
From: "Dominic Watson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Wednesday, September 05, 2007 8:33 AM
Subject: Re: structKeyExists() - Ok, this is freakin me out....
> One possible answer and I believe it is an IE bug:
>
> If you hit return on the keyboard to submit a form in IE and your form
> action="" (submitting to the same page), the submit button does not get
> included in the post - thus the code will not work.
>
> Use StructKeyExists(form, 'fieldnames') and if you need more specific
> info,
> check the names of the fields in the form but never the submit button!
>
> Dom
>
>
> On 05/09/07, Bryan Stevenson <[EMAIL PROTECTED]> wrote:
>>
>> >I like to name my submit buttons (saveContact, vs. submit) to avoid that
>> > type of error, and to allow multiple submit buttons that do different
>> stuff.
>>
>> Ditto...much more explicit and flexible
>>
>> Bryan Stevenson B.Comm.
>> VP & Director of E-Commerce Development
>> Electric Edge Systems Group Inc.
>> phone: 250.480.0642
>> fax: 250.480.1264
>> cell: 250.920.8830
>> e-mail: [EMAIL PROTECTED]
>> web: www.electricedgesystems.com
>>
>> Notice:
>> This message, including any attachments, is confidential and may contain
>> information that is privileged or exempt from disclosure. It is intended
>> only for the person to whom it is addressed unless expressly authorized
>> otherwise by the sender. If you are not an authorized recipient, please
>> notify the sender immediately and permanently destroy all copies of this
>> message and attachments.
>>
>>
>>
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287821
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4