Displaying message
For displaying a message after form submission, we can use transient variables. Transient variables are stored in the database for a certain amount of time. You can use the transient variables to display a message after form submission.