I was wondering how to create a secure form record through AJAX.
For example, I have:
My HTML form.
My JavaScript handles submit.
Submission URL "post_data.php"
Published data:
ID = 8 & name = Denis
PHP checks if the id and name variables are POSTED and their data type. If this is normal, you can do some things in the database.
My question is, how can I prevent someone from creating their own HTML form, outside my website or something else, and submitting false data to my PHP script?
Imagine that the data really exists in my database, it can be bad.
thank
tdecs source
share