What is the code for a PHP form that matches a user input to a correct response and if it is not equal, it returns an error and if it is it shows a successful message.
Example:
If the proper string to insert is 1234 and the user enters 3948, it should return an error, but if the user enters 1234 it should go to a new page.