I am attempting to validate a data passed in a form using PHP on the server side. Here is what I would like to do. User enters a value in the form and clicks on submit. On the server side, the PHP script should validate that the data matches a certain string. In this case I will say "team." If there was not data entered or the data does not match team, then I would like to print out a message like, "incorrect PW entered. If the data entered is correct, then I would print, "Thanks...correct PW entered."
I would appreciate any feeback. Thanks