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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

android - Format a french phone number -