For example, if a user can submit red, yellow, or green on a form and I have hidden input that saying if user selects red the value of the hidden input is physco and if they select blue normal then finally if they select yellow the value is feminine.
I think this would be the same process as error checking but I’m not sure how to do this in html/php. Any help is appreciated.
Thanks!
You can use JavaScript to change the value of a hidden form input, but this can be modified and/or JavaSript can be disabled.
If you are submitting the form to the server, you could assign this value server-side with PHP.