fammi capire tu nella pagina scrivi tutto questo:
Codice PHP:
<?php
session_start();
if ($_SESSION['anni'] =='SI')
{
codice
//Se il login è sbagliato vai all'homepage
}else{
echo "eror";
} ?>
<?
session_start();
if ($_POST['anni'] =='SI')
{ $_SESSION['anni']="SI";
echo '
<script type="text/javascript">
<!--
window.location.href = "girl.php";
-->
</script>'; }
else
{ $_SESSION['anni']="NO";
echo '
<script type="text/javascript">
<!--
window.location.href = "index.php";
-->
</script>';
}
?>
oppure solo questo:
Codice PHP:
<?
session_start();
if ($_POST['anni'] =='SI')
{ $_SESSION['anni']="SI";
echo '
<script type="text/javascript">
<!--
window.location.href = "girl.php";
-->
</script>'; }
else
{ $_SESSION['anni']="NO";
echo '
<script type="text/javascript">
<!--
window.location.href = "index.php";
-->
</script>';
}
?>
??????