There are different ways to handle this, posting your form variables into
your subsequent URL variables being one of them.

A few questions to establish what you are actually looking for.
1. The 'conditional' redirect;  Are you redirecting the user to a different
website, or just to a different page on your website?
2. If you are sending the user to a different website, do you have to?  Can
you use cfhttp to call the page on the other site, using your form
variables, and then just display the results to your user on your own site?
3. If you are keeping the user on your own website, does the url have to
change to the 'redirected' page in order for the application to work
properly?  If you are concerned with the url having the form data in it, you
could use a 'main' page that 'includes' a subsequent page (chosen from many)
depending on the form entry's information.
        For example.  If it is a 'search page' and the search results would
display differently depending on what was searched.
        Main.cfm
                <cfif form.SearchType eq 'person'>
                        [include, method call, etc to have the person search
results display]
                <cfeleseif form.SearchType eq 'place'>
                        [include, method call, etc to have the place search
results display]
                </cfif>

If there is a different concept you are trying to create, share the
specifics and I am sure we can point out one or two ways to accomplish it.

William

-----Original Message-----
From: Pete Ruckelshaus [mailto:[email protected]] 
Sent: Sunday, August 21, 2011 11:47 AM
To: cf-talk
Subject: Way to "send" data as a form without using a form?


Hopefully simple question.

I would like to do a conditional redirect from one page to another.  For
some of those conditions, I would like to "send" data along with this
redirect, and I would prefer to not do it via URL parameters.  Is there any
way to "send" data as form values without actually using a form?

Thanks,

Pete




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346908
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to