Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/04/2005, 11:24
elmargaro
 
Fecha de Ingreso: febrero-2004
Mensajes: 65
Antigüedad: 20 años, 2 meses
Puntos: 1
<?
//session_start();
// intente ponerlo aqui pero no funciono jejej
?>
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #990000;
}
a:link {
color: #990000;
}
a:visited {
color: #990000;
}
.style3 {
color: #003399;
font-size: 14px;
}
.style4 {font-size: 18px}
.style5 {color: #003399}
.style6 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #003399;
font-weight: bold;
}
.style10 {
font-family: Arial, Helvetica, sans-serif;
color: #003399;
}
-->
</style>
</head>

<body>
<script LANGUAGE="JavaScript1.1">


function derecha(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
alert('click derecho')
return false;
}

else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2)){
alert('click derecho')
}
}
document.onmousedown=derecha
</script>

<?
function frmDescarga(){
//session_start(); aqui tampoco funciono
if ($_SESSION['usuario'] == "Si") { ?>

aqui pongo codigo html pero si le quito el comentario al session_start en cualquiera de los 2 lugares me da el error
<?
}
else
{echo 'No está autorizado a ver ésta página ';}
}
?>
</body>
</html>
__________________
eL MArgARo