Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Secure Hidden form Data $_POST

Tags:

html

forms

php

I was just fiddling around in Chrome and realized that a hidden form element can be changed by a user in the Chrome inspector.

enter image description here

As you can see in the picture above any user can go in and edit the form in Chrome and then submit the form.

I'm curious if there is a way around this such as a more secure way of sending data to my files that I do not want to be changed by the user.

like image 506
Ben D Avatar asked Dec 06 '25 04:12

Ben D


1 Answers

Easy, don't put it in your form. So where can you put it? Store it in a session.

like image 106
John Conde Avatar answered Dec 07 '25 20:12

John Conde



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!