When a redirection call is made, user-submitted fields and PHP variables do not carry forward to the target page. Therefore, we need to use another method, query arguments, to determine that a confirmation message should be displayed.
The first part of the recipe modifies the existing call to wp_redirect slightly to add a new query variable called message, set to a value of 1.
Once it receives this variable, the code responsible for rendering the options page can display a message, following the standard WordPress styling.
The same mechanism could be used to display different messages based on the outcome of the options storage. For example, if some fields need to receive data formatted a certain way, the process_ch2pho_options function could set the message value differently depending on the success or failure of the data processing operation.