>From a pure HTTP/REST point of view: Links only support the GET method. Forms support POST and GET.
Retrieving information should be a GET. If the action adds/modifies a data entry, it should be a POST. Therefore, use links. For example: Would it matter if google/some other bot crawled the links? If it would not make sense (or if it brought your app crashing down) then you should definitely be using POST; therefore a form. hth grigri On May 25, 11:57 pm, "Dave Maharaj :: WidePixels.com" <d...@widepixels.com> wrote: > I currently have a function where a user can click a link to bookmark a page > to their personal favs. > > The link/button just goes to the function in the controller which gets all > the info needed to save to the bookmark page from the logged in user id and > the page they are saving. My question is would it be better or make any > difference to use a form with just submit/save which would call the same > function? > > Dave --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---