If you are familiar with the GET problem, you can skip this next paragraph straight to my question.
The GET problem was a hot debate recently about how web applications are designed. When HTML was originally developed, there was a clear distinction between HTTP GET and HTTP POST. The GET method was used to request information from the server, and the POST method was used create a change of state on the server. Web developers have generally ignored this while the Internet grew. Any normal link, such as a "Delete this item" link, uses the GET method to request a change. This wasn't a problem for administration areas until google released it's web accelerator software which crawls the current page you are on, caching pages that it links to. If you were logged into an admin area, it would crawl your delete links, effectively deleting your data, without your consent. So my question is: Is there anything currently in cakePHP that helps to deal with this issue? For example, is there some sort of helper that can quickly generate POST button to quickly make links in this manor... if not how would I propose it be added to cakePHP? something like this: $form->button_to('/node/delete/5', 'Delete This Item'); which would create a form, and the button: <form action="/node/delete/5" method="POST"> <input type="submit" value="Delete This Item"> </form> There could also be a solution for generating links that use javascript to create the POST request, and ignoring robots. If javascript is disabled, it could simply create a secondary page that asks "are you sure you want to delete this?" with a POST button there. This should also be the default behavior of code generated by baking. --sheik --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---