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 can be checked to see if they've been

without storing all the values in respective hidden fields, calculate
a 'checksum' on data and store in one hidden field. after the submit
and before you decide on the update, you can calculate the checksum of
submitted data, compare against the hidden field checksum and take the
decision.

if you maintain a session, storing checksum in session instead of
client side (hidden field in form) will be more safe/secure and will
help in improving the mechanism (persistent classes, serialized data
etc)

Ah, interesting idea, I hadn't thought of that as an option. Yes, it makes sense. Also makes sense to store it in a session variable instead of on the form.

Thanks,
Tamara


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to