It is common to treat post and get data in the same way; simply, user input.
I find doing this gives you greater flexibility and clarity (my page gets
input, I do stuff with it). All frameworks that I have used have done this
and it's a real snip to do at the beginning of a request somewhere:

request.data = url;
StructAppend(request.data, form);

Of course, request.data could be 'variables.userInput' or whatever seems
good to you.

Dominic

2009/9/14 Claude Schneegans <schneeg...@internetique.com>

>
> Hi,
>
>  From time to time, I find in my error log errors due to undefined form
> variables.
> The reason being that the template was requested using method GET
> instead of POST.
>
> Of course, there are dumb bots that would GET any address they find in a
> page,
> but there are also true visitors, even registered members, who will
> eventually cause the same error.
>
> I've also noticed that if you are in a page submitted from a FORM, you
> click on the address bar in the browser
> and press Enter, then the same page will be requested with a GET, and
> cause the same error.
>
> Then I intend to write some tag that will check the method used in the
> request,
> but my question is: what would you do - or already do -  in case of GET
> instead of POST?
> - send some error response?
> - send the user back to the correct empty form?
> - send some Javascript code to go back in the history?
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326290
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to