0
I need help putting the user name at the top of the page. In php I managed to do, (if you echo "$userName" it works) but loses all formatting, so I need to replace it in html. Look at
if (Session::getValue('logado')):
switch (Session::getValue('departamento')) {
case '1':
$menu = 'menu/admin.html';
$nomeusuario = $_SESSION['nome'];
$string = 'Olá ' . $nomeusuario . ' seja bem vindo!';
$nova = str_replace('#TMSG#', $nomeusuario, $string);
var_dump($nova);
It doesn’t seem to make any sense. After all, what do you want to replace? How are you currently doing and how do you want to replace it?
– Daniel Omine
Not replacing anything with anything and there are clotheslines unused.
– Inkeliz