How redirect without header in php? -


i have controllerloginusu.php :

<?php  require "dao/daologinusu.php";    class loginusuario{      public function setdatos($ainput) {          $obj = json_decode($ainput, true);         $dao = new daologinusuario();        $dao->setdatadato($obj);         $msj = $dao->setdatadato($obj);         session_start();       if ($msj === 'si') {           $_session['msj'] = "si";           return $msj;           header("http://localhost:8080/formulario_web/formulario/formulario_lazos.php");           exit;         }    }  } ?> 

after start session , return $msj need redirect header don't work. other solution case?

sorry english.

you forgot location.

try:

header("location: http://localhost:8080/formulario_web/formulario/formulario_lazos.php"); 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -