Jump to content

php update form question


redphoenix

Recommended Posts

Hi everyone,

 

I am designing a form to update data. The form represents multiple records (think of a data grid). When the user changes a value and clicks update, the form gets posted, and the field values are taken and an UPDATE statement is run. I have the id field as a hidden field - so that I can identify updates for a record.

 

I was wondering, isn't this pretty insecure? the user can change the value of the hidden id form field and make changes to records that they are not supposed to. Is there an easy way to fix this? (actually any ideas are welcome :) ).

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/128975-php-update-form-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.