CSS does not load with link

0

Hello, I'm logging in and I need to pass the logged in user to other pages.

I call the other page this way:

$url = 'cadastroFuncionario.php/nome='.$nome.'&id='.$idFuncionario.'';

But this page ( cadastroFuncionario ) does not load the css. Is there another way to get the employee logged in to the other pages?

My code:

if ((isset($_POST["id"])) && (isset($_POST["senha"]))) {
    $idFuncionario = $_POST["id"];
    $senha = $_POST["senha"];
    $sql = "SELECT * FROM funcionario WHERE id = '$idFuncionario' AND senha LIKE '$senha' ";
    $q = mysqli_query($con, $sql);
    while ($registro = mysqli_fetch_array($q)){
        $nome = $registro["nome"];
    }

    if (is_null($nome)){
        echo "<script type='text/javascript'> window.alert('Usuario ou senha incorretos') </script>";
    } else {
        $url = "cadastroFuncionario.php/nome=" . $nome . "&id=" . $idFuncionario . "";
        echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL=' . $url . '">';
    }
    
asked by anonymous 03.07.2016 / 01:55

1 answer

0

use the following example:

<link href="index.css" rel="stylesheet" type="text/css">

<link href="../index.css" rel="stylesheet" type="text/css">

Notice the ../ , Maybe the file is above the stylesheet file.

    
03.07.2016 / 07:45