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
Post a Comment