It should be noted that the GET Request is not designed for this ;-)

Hypertext Transfer Protocol (HTTP)
Request methods
GET
    Requests a representation of the specified resource. Note that GET
should not be used for operations that cause side-effects, such as
using it for taking actions in web applications. One reason for this
is that GET may be used arbitrarily by robots or crawlers, which
should not need to consider the side effects that a request should
cause.

http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol

Or at least it should be seen as Best Pratice not to do so.

On Jan 19, 1:53 am, Webweave <webwe...@gmail.com> wrote:
> Not sure I do, looks like you got a partial post. The validate
> 'numeric' for id, will validate the data for your id column as
> numeric.
>
> You don't even need that if the field is numeric as there wouldn't be
> allowed automatically.
>
> IF on the other hand you are asking how do I detect if a value was
> passed by GET or POST, that's an entirely different thing.
>
> POST data is passed in $this->data, GET data is passed in $this-
>
> >passedArgs or $this->params['url'].
>
> Seehttp://book.cakephp.org/view/55/The-Parameters-Attribute-params
>
> On Jan 18, 11:43 am, Delirium tremens <pedbe...@gmail.com> wrote:
>
> > Are you still not understanding the question?
>
> > On 18 jan, 15:38, Delirium tremens <pedbe...@gmail.com> wrote:
>
> > > How come nobody knows???
>
> > > On 18 jan, 13:30, Delirium tremens <pedbe...@gmail.com> wrote:
>
> > > > How to validate an id passed not by post, but by get? I do not have to
> > > > output an error message to hackers and crackers, do I? I tested using /
> > > > ^[0-9]{1,10}$/ as rule, nothing as message and passing an "a", but it
> > > > did not output an error message.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to