Well, you can use GET or POST to send data to your application: GET might be easiest:
So [id]:[some_number] Needs to somehow end up as a request to /controller/action?id=some_number And inside the controller, you're data will show up as $this->params['url']['id'] (which would be equal to 'some_number') -- John On May 17, 2006, at 10:45 AM, Reggie Johnson wrote: > > Sorry for the long title, but I wanted to make it would make it > easy to > search for in the future. > I have a view which has a button that calls a javascript function once > it's clicked using "onclick=functionFoo". The javascript function > manipulates some data and returns an string in the form of > [id]:[some_number]. I want to use the [id]:[some_number] pair to > update each of the records in my database table. I've gotten the > javascript to return the data I'm looking for, but I'm having trouble > making the leap back to the controller, and then altering my database > records. What is the typical/accepted way of doing this? Are there > any tutorials out there that might clear this up? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
