You could put that code in your header with perhaps an exception list of
pages where you would allow a non POST (ie, GET) connection.
> There's no way of controlling a bookmark ...short of getting a bit
> kludgy...you can put the entire site into a frame (with with one frame
> having 100% width and the other having 0%)...that way the home page URL is
> the only one that would ever be displayed.
>
> As far as your fix for the form action pages, i don't know why you'd need
> something 'more elegant'. simply <cfif NOT
> isDefined("form.fieldnames")><cflocation
> url="myhompage.cfm"><cfabort></cfif> is fine.
>
> charlie
>
> Che Vilnonis writes:
>
> > I have a website with many form/action pages within it.
> > I am looking for a more elegant way to stop users from
> > 'bookmarking' this site on an action pages since subsequent
> > calls will create errors.
> >
> > In the past I have done something like this:
> > <cfif isDefined("FORM.Fieldnames")>
> > do some processing
> > <cfelse>
> > redirect to some other page
> > </cfif>
> >
> > Is there a more elegant way of doing this SITEWIDE?
> >
> > More importantly, is there a way to control the URL
> > that gets 'bookmarked' by end users? (I would like
> > ALL URLs to refer to the website's homepage.)
> >
> > Thanks Ch�
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4