Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1010441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:05:01+00:00 2026-05-16T09:05:01+00:00

Within a Cake application, if a user is submitting a form to edit a

  • 0

Within a Cake application, if a user is submitting a form to edit a record, what do you think would be the best way to outline the specific changes made? I would like to display the values to all of the fields that the user is changing and offer them the option to either confirm the changes or go back and change them. I assume that it will involve comparing the submitted data with the existing record, but I was hoping Cake had some built in functionality to do this. Any thoughts? I’m also open to any javascript solutions as well, but I’d like to have a Cake fallback for those users who still operate in the stone age.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T09:05:02+00:00Added an answer on May 16, 2026 at 9:05 am

    This seems like an outdated process, to verify input. I can see doing this for a billing screen, but not necessarily every time a user wants to edit a record. It’s like we are calling into question their quality and saying, “Are you sure you entered everything correctly?” I think this is poor design and should be avoided. They will know if they made a mistake. They can just as easily go back and make the change again if necessary.

    I would suggest providing simple form validation (making sure email addresses are actually email addresses, checking phone numbers, etc.). Beyond that, it would be up to the user to enter correct information. It can get annoying being constantly asked, “ARE YOU SURE?”

    That being said, one way to do this (if you MUST) is to modify your default method. So for example, if you are using the function called update() in your information controller, you could write something like this:

    function update() {
       if($this->data) {
          if($this->data['Information']['confirmed']) {
             // save updated information
          } else {
             // display changes to be made (use hidden fields and add confirmed=1)
          }      
       }
       // display edit form
    }
    

    I am of the opinion it is bet to keep the functionality all within the same method if possible. It prevents code from spreading out all over the place and becoming unmanageable.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Within my application I would like to have a dialog box or a form
Within Ruby on Rails, what's the best way to find out what data a
Within the context of a web application written using the YUI library 3.4.1 it
Within a Mac OS X (10.7 Lion) Non-Document Based application, I want to include
Within a Zend app, is there a way to define a class which does
Within my ASP.NET App I am using a Method to check user permissions to
Within a rake task how does one query the description? Something that would give:
I need to develop a template-like user control, which would accept any arbitrary content,
Within the following method, I would like to access any optional arguments that are
Within an application, I've got Secret Keys uses to calculate a hash for an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.