vendredi 27 mars 2015

Preventing duplicate/malicious form input with a unique ID

I reckon every page that has a form will need a unique ID generated. How would one go about storing, retrieving, and verifying this ID in an online environment?


Would you create a new database and run an INSERT query on every page that has a form on it? Followed up by a SELECT query on the forms target page to verify?


Would you then need to manually run a script that checks for old IDs to delete them? Or is there a more efficient method to all of this?


Aucun commentaire:

Enregistrer un commentaire