Should I put an effort into avoiding updates when the data on a submitted form is unchanged from the data already stored? Is it worth it to query the database before updating?
For a specific example of what I'm talking about, say I use php to generate a form as follows, using existing data to populate the values:
<form ... >
<input type="hidden" name="id[1]" value="1"><input name="name[1]" value="Arnie Alpha"/>
<input type="hidden" name="id[2]" value="2"><input name="name[2]" value="Bernie Bravo"/>
<input type="hidden" name="id[3]" value="3"><input name="name[3]" value="Charlie Charlie"/>
<input type="submit">
Now if the user changes "Charlie Charlie" to "Donald Delta", and submits the whole form, should the database be queried to see that the first two records were unchanged?
Thanks,
Ben