When registering a user I send and receive from the model in the following function:
$respuesta=Datos::RegistroUsuarioModel($datosusuarios,"usuarios");
if($respuesta == "success"){
header("location.index.php?action=ok");
}
else{
header("location:index.php");
}
when registering the user successfully enters success, but sends me the following error:
Warning: Can not modify header information - headers already sent by (output started at C: \ xampp \ htdocs \ coffee \ controller \ controller.php: 63) in C: \ xampp \ htdocs \ coffee \ controller \ controller.php on line 121
this is my line 63:
echo '<option value="'.$item['id_pais'].'">'.$item['PaisNombre'].'</option>';
and this is line 121:
header("location.index.php?action=ok");
I have already read in all the forums about the problem and I have not been able to solve it