GET insread of POST: what would you do?

2009-09-14 Thread Claude Schneegans
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

RE: GET insread of POST: what would you do?

2009-09-14 Thread DURETTE, STEVEN J (ATTASIAIT)
GET, otherwise they wouldn't show in the URL. Steve -Original Message- From: Claude Schneegans [mailto:schneeg...@internetique.com] Sent: Monday, September 14, 2009 3:05 PM To: cf-talk Subject: GET insread of POST: what would you do? Hi, From time to time, I find in my error log

Re: GET insread of POST: what would you do?

2009-09-14 Thread Claude Schneegans
One thing though, if the values are showing up in the url then your form itself must be using GET, otherwise they wouldn't show in the URL. I thought it was clear in my initial post that the form was indeed submitted using POST. and of course I do validate the values received. The problem is

RE: GET insread of POST: what would you do?

2009-09-14 Thread DURETTE, STEVEN J (ATTASIAIT)
...@internetique.com] Sent: Monday, September 14, 2009 4:00 PM To: cf-talk Subject: Re: GET insread of POST: what would you do? One thing though, if the values are showing up in the url then your form itself must be using GET, otherwise they wouldn't show in the URL. I thought it was clear in my

RE: GET insread of POST: what would you do?

2009-09-14 Thread Hugo Ahlenius
| I thought it was clear in my initial post that the form was indeed | submitted using POST. | and of course I do validate the values received. | The problem is when the user resubmits it from his browser using GET | (probably not even being aware of it). | I can detect this situation, my

Re: GET insread of POST: what would you do?

2009-09-14 Thread Dominic Watson
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:

Re: GET insread of POST: what would you do?

2009-09-14 Thread Claude Schneegans
request.data = url; StructAppend(request.data, form); This will work if the GET request transmits the form parameters in the url instead, but it is not the case: the url contains no value. ~| Want to reach the ColdFusion

Re: GET insread of POST: what would you do?

2009-09-14 Thread Claude Schneegans
After processing the form, redirect the browser (302 redirect, cflocation) to the 'thank you, your form is submitted' page. Good point, except many times, the input process is not finished. There may be 4 or 5 steps of form to fill before I can say thank you. Not really simple to pass all

Re: GET insread of POST: what would you do?

2009-09-14 Thread Claude Schneegans
Create a required variable and use that to redirect them back to the form. Redirect them back to the form was indeed what I intent to do. However, testing CGI.REQUEST_METHOD NEQ post seems more logical. ~| Want to reach the