Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Tamara Temple
On Sep 11, 2010, at 9:27 PM, viraj wrote: On Sat, Sep 11, 2010 at 10:22 PM, Tamara Temple tamouse.li...@gmail.com wrote: I have a general question and am looking for best practices. Is it worth the overhead of passing along the previous values in the table in hidden fields so that fields

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Robert Cummings
On 10-09-11 12:52 PM, Tamara Temple wrote: I have a general question and am looking for best practices. Suppose I present a user with a form for editing an entry in a table, i.e., the form has filled in values from the existing table entry. Now, suppose they click on 'submit' without making

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Tamara Temple
On Sep 12, 2010, at 3:34 PM, Robert Cummings wrote: On 10-09-11 12:52 PM, Tamara Temple wrote: I have a general question and am looking for best practices. Suppose I present a user with a form for editing an entry in a table, i.e., the form has filled in values from the existing table entry.

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Ashley Sheridan
On Sun, 2010-09-12 at 16:12 -0500, Tamara Temple wrote: On Sep 12, 2010, at 3:34 PM, Robert Cummings wrote: On 10-09-11 12:52 PM, Tamara Temple wrote: I have a general question and am looking for best practices. Suppose I present a user with a form for editing an entry in a table,

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Michael Shadle
On Sun, Sep 12, 2010 at 2:12 PM, Tamara Temple tamouse.li...@gmail.com wrote: Ok, but how do you detect if a field changes? The specific implementation between application and data storage is probably moot until you figure that part out. +1 without talking to the server, or accessing it in

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Robert Cummings
On 10-09-12 05:19 PM, Michael Shadle wrote: On Sun, Sep 12, 2010 at 2:12 PM, Tamara Templetamouse.li...@gmail.com wrote: Ok, but how do you detect if a field changes? The specific implementation between application and data storage is probably moot until you figure that part out. +1 without

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Tamara Temple
On Sep 12, 2010, at 4:28 PM, Robert Cummings wrote: On 10-09-12 05:19 PM, Michael Shadle wrote: On Sun, Sep 12, 2010 at 2:12 PM, Tamara Templetamouse.li...@gmail.com wrote: Ok, but how do you detect if a field changes? The specific implementation between application and data storage is

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Michael Shadle
On Sun, Sep 12, 2010 at 3:04 PM, Tamara Temple tamouse.li...@gmail.com wrote: Actually, even the client-side aspect isn't good enough -- they could simply retype the same value in the field. Also, I'd like to not rely on JavaScript alone to indicate that there's been a change, since, as Ashley

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Ashley Sheridan
On Sun, 2010-09-12 at 17:04 -0500, Tamara Temple wrote: On Sep 12, 2010, at 4:28 PM, Robert Cummings wrote: On 10-09-12 05:19 PM, Michael Shadle wrote: On Sun, Sep 12, 2010 at 2:12 PM, Tamara Templetamouse.li...@gmail.com wrote: Ok, but how do you detect if a field changes? The

[PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-11 Thread Tamara Temple
I have a general question and am looking for best practices. Suppose I present a user with a form for editing an entry in a table, i.e., the form has filled in values from the existing table entry. Now, suppose they click on 'submit' without making any changes in the form. (Perhaps, say,

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-11 Thread viraj
On Sat, Sep 11, 2010 at 10:22 PM, Tamara Temple tamouse.li...@gmail.com wrote: I have a general question and am looking for best practices. Is it worth the overhead of passing along the previous values in the table in hidden fields so that fields can be checked to see if they've been without