0
Hello, I would like to put the "Exit" and the "Login | Register" up.
The input file would like to leave only a large button like this without that part that shows what was selected.
index php.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LuppBox</title>
<link rel="stylesheet" type="text/css" href="estilo_index.css"/>
</head>
<body bgcolor="#0099FF">
<ul id="cabecario">
<li id="logo"><img src="fotos_site/logo.png" width="auto" height="60" /></li>
<li id="login_cadastro_css"><a href="sair.php">Sair</a></li>
<li id="login_cadastro_css"><a href="login_cadastro.php">Login | Cadastro</a></li>
</ul>
<?
session_start();
if(isset($_SESSION['login_usuario']) && isset($_SESSION['senha_usuario']))
{
echo "Olá ".$_SESSION['login_usuario'];
echo "<p><input id=\"upload\" type=\"file\" value=\"UPLOAD\">";
}
?>
</body>
</html>
style_index.css
@charset "utf-8";
#cabecario
{
height:60px;
width:900px;
background:#0F3;
border-radius:3px;
margin:0 auto;
}
#logo
{
list-style:none;
margin-left:70px;
}
#login_cadastro_css
{
list-style:none;
display:inline-block;
alignment-adjust:auto;
margin-left:750px;
}
#cabecario a
{
font-family: "Times New Roman", Times, serif;
font-size: 18px;
color: #FFF;
text-decoration: none;
}
#upload
{
border-radius:10px;
background:#006;
width:400px;
}
It is not a good idea to leave user password stored in session (
$_SESSION['senha_usuario']
)...– Marcus Vinicius
Where should I leave ??
– Lucas Caresia
Keep it in an encrypted database. When authenticating the user, just search and compare. Don’t leave it in the session because it can be hacked. Read more in http://phpsec.org/projects/guide/4.html
– Marcus Vinicius
Vlw for the help, I’ll fix it, but you know how to solve the problem I mentioned above ??
– Lucas Caresia
I am analyzing here.
– Marcus Vinicius