I'm curious how to pass the value $name
from the controller to the view success.php
if $this->request->redirect ( 'success' );
is used. (it redirects to success.php if the name was entered on the previous page unless it stays on the same page).
View success.php
contains:
Hello, <? echo $name; ?>!
Tried several ways to pass the value $name
, but still have no luck. All the rest works fine (it redirects if the name is not empty). All I want is to write 'Hello, John', if 'John' was entered.
Thank you.