Home / Blog / How to add the message with a redirect?
How to add the message with a redirect?

How to add the message with a redirect?

  • Anna KoshevaAnna Kosheva
  • May 12, 2022

    May 12, 2022

Topics from the video:

  • The session is used to transfer messages from one page to another
  • The session_start() function and $_SESSION global array variable to set messages
  • How to pass validation messages and show it inside the user register form
  • How to render errors in the form

Note: There is no Magento 2 topic discussed in the video.

Users often need to transfer messages that they receive to other people. This action can be fulfilled in two ways – “Forward” and “Redirect”. While forwarding, the source message becomes an attached file and can be supplemented by additional text from the forwarding user. Redirecting is different, because the source message is not modified in any way – the final recipient gets it the same way as the one who redirects it. It is worth mentioning that if a message is forwarded, the user who forwards it (and not the initial author of the message), is indicated as its sender, whereas a redirected message is shown to the final recipient as sent by the initial sender (and not the one who redirects it). We’ll explain how to recognize a redirected message later.

So, how to add a message with a redirect in Magento 2? Watch the video!

  • Anna KoshevaAnna Kosheva
  • May 12, 2022

    May 12, 2022

Sign up and don't miss our awesome Mage Mastery lessons and updates!

Related Posts
How to add user authentication?

How to add user authentication?

editAnna Kosheva
edit May 19, 2022

Topics discussed in the video:
– How to authenticate user via login form using PHP
– How to check username and password with data stored in database

Magento 2 is here to stay

Magento 2 is here to stay

editAnna Kosheva
edit April 28, 2022

Starting from Magento 2.4.4 there is rebranding that is called Adobe Commerce. What will happen next?

Magento 2 Development: 5 Things You Miss in a Magento 2 Module

Learn about 5 things that are missing after reviewing 500+ Magento 2 modules. These 5 and 1 bonus topics can improve your Magento 2 development skills to a next level.

If you like this blog post, you may want to watch
Beginner
 
Max Pronko
Web Icon13 lessons
Clock Icon1 hour 57 mins
In this free course, you will learn Magento 2 development concepts and gain knowledge of building a fully functional Magento 2 Blog module. The online course will help you develop the necessary skills to become an Adobe Commerce Developer Expert.
Intermediate
 
Max Pronko
Web Icon20 lessons
Clock Icon15 hours 00 mins
Adobe Certified Professional — Magento Commerce Developer Study Group is an 10-week (1.5 hours/week) instructor-led study group. This study group will help PHP and JavaScript developers evaluate their readiness and prepare for the Adobe Certified Professional — Magento Commerce Developer exam.
2023 © Made with ❤ by Max Pronko