Security precautions when updating database row via URL segments |
[eluser]Billy Shall[/eluser]
Normally i'll attach an onchange to a select group for quick changes to a row such as: Code: <form> However since adopting twitter bootstrap, i've been trying to set this functionality into their nice looking button dropdown menus. I've come up with a solution using links instead of the post data: Code: <div class="btn-group"> The function for updating the database row would be something like: Code: function change($id, $field, $value) Aside from Filtering/Validating/Escaping the data and obfuscation of the $id into a unique key, am I going in the wrong direction here? Opening up security holes? Is it a better idea to stick to the good ol' form data? Thank you! |
Messages In This Thread |
Security precautions when updating database row via URL segments - by El Forum - 07-19-2012, 06:00 PM
Security precautions when updating database row via URL segments - by El Forum - 07-19-2012, 10:00 PM
Security precautions when updating database row via URL segments - by El Forum - 07-20-2012, 06:15 AM
Security precautions when updating database row via URL segments - by El Forum - 07-20-2012, 03:31 PM
|