So i did a test when I changed your cfform to post to test2.cfm, and
dumped the form scope there, and I saw the same - it doesn't recognize
the second button. I mean the button works, but the value is the same.
On 8/5/07, Raymond Camden <[EMAIL PROTECTED]> wrote:
> Odd - I see it too. One thing to remember though - when you put cfform
> inside of cflayoutarea, CF will post the form asynchronously, and will
> replace the contents of the layoutarea with the result.
>
> But - you are posting to yourself.
>
> So you end up loading your original file inside the layoutarea you
> just posted from. I wonder if that has something to do with it?
>
> On 8/5/07, Steve Sequenzia <[EMAIL PROTECTED]> wrote:
> > I have this little bit of code that I am testing with inside of a
> > <cflayoutarea>:
> >
> > <cfform name="form1">
> >
> > <cfinput name="sku" type="text">
> > <cfinput type="submit" name="cmd1" value="1">
> > <cfinput type="submit" name="cmd2" value="2">
> >
> > </cfform>
> >
> > <cfif isDefined('cmd1')>
> > <cfoutput>#cmd1#</cfoutput>
> > </cfif>
> >
> > <cfif isDefined('cmd2')>
> > <cfoutput>#cmd2#</cfoutput>
> > </cfif>
> >
> > When inside the <cflayoutarea> and the form is submitted it always returns
> > a value for cmd1 no matter which submit button is clicked to submit the
> > form and no value for cmd2. See example:
> > http://demo.thinksys.com/cf8/cflayout/
> >
> > When not in the <cflayoutarea> it functions like I think it should. See
> > Example: http://demo.thinksys.com/cf8/cflayout/1.cfm
> >
> > Anyone have any idea why. I am sure I am just confusing something because I
> > am really not sure about a lot of the new CF8 stuff.
> >
> > Thanks in advance for any help.
> >
> >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285438
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4