The question is: How do i insert the variable $conf_url as a part of the link in line 16: header('Location:' $conf_url.'index_back.php');
<?php
session_start();
include("conexao.php");
$email = $_POST['email'];
$senha = $_POST['senha'];
$query1 = mysqli_query($con, "SELECT * FROM usuario WHERE email = '$email' AND senha = '$senha'");
$row = $query1->fetch_row();
$_SESSION["iduser"] = $row[0];
$_SESSION["nome"] = $row[2];
$_SESSION["sobrenome"] = $row[3];
$_SESSION["img"] = $row[8];
if($query1->num_rows == 1){
header('Location:' $conf_url.'index_back.php');
//echo "<meta http-equiv='refresh' content='0, url= $conf_url/index_back.php'>";
}else{
$_SESSION['error'] = 'Email e/ou senha invalido(s).';
header('Location: '$conf_url'.'/login.php);
//echo "<meta http-equiv='refresh' content='0, url= $conf_url/login.php'>";
}
?>
config.php
<?php
$conf_url = "http://localhost/production/";
?>