Mirza:

Sorry, forgot to add the .cfm to thispage, thatpage, someotherpage.


Yvette Ingram
ColdFusion Programmer
HWG-TA, ColdFusion 4
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED]
ICQ:  21200397


----- Original Message -----
From: Yvette Ingram <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 19, 2000 9:19 AM
Subject: Re: Question on FuseBox model


> Mirza:
>
> I'm not an expert, but on the form page, you can do something like this:
>
> form.cfm
> <form action="index.cfm?fuseaction=processform" method="post">
> Any hidden values
> blah, blah
> </form>
>
> Another way to do this would be:
> <form action="index.cfm" method="post">
> <input type="hidden" name="fuseaction" value="processform">
> any other hidden values
> blah, blah
> </form>
>
> index.cfm
> <cfcase value="processform">
> <cfif formfieldvalue is "0">
>     <cfinclude template="thispage">
> <cfelseif formfieldvalue is "1">
>     <cfinclude template="thatpage">
> <cfelse>
>     <cfinclude template="someotherpage">
> </cfif>
> </cfcase>
>
> I'm sure there are more efficient and elegant ways to do this, like this
> RFA's (Return Fuseactions), etc..
>
> Hope this helps.
>
> Yvette Ingram
> ColdFusion Programmer
> HWG-TA, ColdFusion 4
> Email: [EMAIL PROTECTED] or
> [EMAIL PROTECTED]
> ICQ:  21200397
>
>
> ----- Original Message -----
> From: aslam bajaria <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 18, 2000 8:50 PM
> Subject: Question on FuseBox model
>
>
> > I am trying to learn the fusebox model. I have a
> > created a file called index.cfm.
> >
> > That file has a switch statement.
> >
> > The question I have is that if I have a file that  has
> > a form, then how do I submit that form so that the
> > index.cfm file can include the right action page.
> >
> > The only way I know so far is that I say something
> > like
> >
> > <cfif form.state="CA">...
> > But,
> > I think that in fusebox model you say:
> >
> > <cfswitch expression="#attributes.fuseaction#">
> >
> >      <cfcase value="00">
> > <cfinclude template="testing.cfm">
> >      </cfcase>
> >
> > and so on.
> >
> > What code do I write in the form page that when the
> > user clicks 'Submit', a fuseaction value is passed to
> > the index.cfm page.
> >
> > Thank you.
> > Mirza
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Send online invitations with Yahoo! Invites.
> > http://invites.yahoo.com
>
> --------------------------------------------------------------------------
> ----
> > Archives: http://www.eGroups.com/list/cf-talk
> > To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to