update link
readall view
echo $html->link('Update', '/articles/update/'.$articleid);
update method
articles controller
function update($id = null) {
validate var
articles model
'id' => 'numeric'
update link
articles controller
echo $form->input('id', array('type'=>'hidden'));
How do I prevent my script from trying to delete id = not a number?
On 18 jan, 17:07, brian <[email protected]> wrote:
> Well, I don't know quite what the question is. What does your test
> look like, exactly? What data are you posting? Post some code.
>
> On Sun, Jan 18, 2009 at 12:38 PM, Delirium tremens <[email protected]> wrote:
>
> > How come nobody knows???
>
> > On 18 jan, 13:30, Delirium tremens <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---