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']. See http://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 -~----------~----~----~----~------~----~------~--~---