>>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 th
>>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 p
>>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 com
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:
req
| 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 questi
Create a required variable and use that to redirect them back to the
form.
I.E.
Steve
-Original Message-
From: Claude Schneegans [mailto:schneeg...@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 initial post that the form was indeed
submitted using POST.
and of course I do validate the values received.
The problem is
url then your form
itself must be using 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,
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 regis
9 matches
Mail list logo